Skip to content

Commit

Permalink
Default to index.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
trestletech committed Apr 17, 2014
1 parent d5b76ed commit d6f626d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/SockJSAdapter.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ if (identical(mode, "shiny")){
}
library(rmarkdown)

rmarkdown::run(Sys.getenv('SHINY_APP'),
# TODO: this should point to whatever Rmd doc is specified in the URL.
# TODO: don't presume (case-sensitive) "index.Rmd", find the real file.
rmarkdown::run(file.path(Sys.getenv('SHINY_APP'), "index.Rmd"),
shiny_args=list(port=port,launch.browser=FALSE))
} else{
stop(paste("Unclear Shiny mode:", mode))
Expand Down

0 comments on commit d6f626d

Please sign in to comment.