run_dev | R Documentation |
dev/run_dev.R
fileThe default file="dev/run_dev.R"
launches your {golem}
app with a bunch
of useful options. The file content can be customized and file
-name and
path changed as long as the argument combination of file
and pkg
are
supplied correctly: the file
-path is a relative path to a {golem}
-package
root pkg
. An error is thrown if pkg/file
cannot be found.
run_dev(
file = "dev/run_dev.R",
pkg = get_golem_wd(),
save_all = TRUE,
install_required_packages = TRUE
)
file |
String with (relative) file path to a |
pkg |
Path to the root of the package. Default is |
save_all |
Boolean; if |
install_required_packages |
Boolean; if |
The function run_dev()
is typically used to launch a shiny app by sourcing
the content of an appropriate run_dev
-file. Carefully read the content of
dev/run_dev.R
when creating your custom run_dev
-file. It has already
many useful settings including a switch between production/development,
reloading the package in a clean R
environment before running the app etc.
pure side-effect function; returns invisibly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.