I\'m trying to create a shortcut on the desktop to run a Shiny app. I am stuck on creating a batch file to execute this and after scouring the web, I still haven\'t been able to
You have to set the R working directory to the folder containing your shiny files; or explicitly specify the path in your call to runApp().
runApp()
Something like this:
test.bat
"path/to/Rscript.exe" "path/to/run.R"
run.R
library(shiny) setwd("c:/users/username/Desktop/test") runApp()