Files
shiny/run.R
Joe Cheng 6955573dd0 Generalize app serving
- Separate generic server code from app logic
- Refactor folder layout to put examples in separate folders
- Separate shared client assets from app-specific stuff
- Introduce friendly functions for interacting with framework from app logic
2012-06-26 21:52:50 -07:00

16 lines
322 B
R

source('R/react.R');
source('R/shiny.R');
args <- commandArgs(trailingOnly=T)
if (length(args) == 0) {
stop("Usage: shiny.sh <app_dir>")
}
app.path <- args[1]
app <- start.app(app=file.path(app.path, 'app.R'),
www.root=file.path(app.path, 'www'),
sys.www.root='./www')
run.app(app)