Created
October 31, 2018 17:46
-
-
Save jcheng5/79424929899e401707cb890a19caf812 to your computer and use it in GitHub Desktop.
Launch Shiny apps from command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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