Skip to content

Instantly share code, notes, and snippets.

@jcheng5
Created October 31, 2018 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcheng5/79424929899e401707cb890a19caf812 to your computer and use it in GitHub Desktop.
Save jcheng5/79424929899e401707cb890a19caf812 to your computer and use it in GitHub Desktop.
Launch Shiny apps from command line
# Examples:
# shiny # Launch the Shiny app in the current directory
# shiny path/to/app # Launch the Shiny app at the specified path
# shiny . launch.browser=F,port=8000 # Launch Shiny in the current dir with given options
function shiny {
R --vanilla -q -e "shiny::runApp(\"${1:-.}\", launch.browser=TRUE, $2)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment