The defaultfile="dev/run_dev.R" launches your{golem} app with a bunchof useful options. The file content can be customized andfile-name andpath changed as long as the argument combination offile andpkg aresupplied correctly: thefile-path is a relative path to a{golem}-packagerootpkg. An error is thrown ifpkg/file cannot be found.
Usage
run_dev( file="dev/run_dev.R", golem_wd=get_golem_wd(), save_all=TRUE, install_required_packages=TRUE,pkg)Arguments
- file
String with (relative) file path to a
run_dev.R-file- golem_wd
Path to the root of the package. Default is
get_golem_wd().- save_all
Boolean; if
TRUEsaves all open files before sourcingfile- install_required_packages
Boolean; if
TRUEinstall the packagesused inrun_dev.R-file- pkg
Deprecated, please use golem_wd instead
Details
The functionrun_dev() is typically used to launch a shiny app by sourcingthe content of an appropriaterun_dev-file. Carefully read the content ofdev/run_dev.R when creating your customrun_dev-file. It has alreadymany useful settings including a switch between production/development,reloading the package in a cleanR environment before running the app etc.