Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Run thedev/run_dev.R file

Source:R/run_dev.R
run_dev.Rd

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 arun_dev.R-file

golem_wd

Path to the root of the package. Default isget_golem_wd().

save_all

Boolean; ifTRUE saves all open files before sourcingfile

install_required_packages

Boolean; ifTRUE install the packagesused inrun_dev.R-file

pkg

Deprecated, please use golem_wd instead

Value

pure side-effect function; returns invisibly

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.


[8]ページ先頭

©2009-2025 Movatter.jp