mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-10 15:38:19 -05:00
- 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
16 lines
322 B
R
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)
|