step_run_code | R Documentation |
Captures the expression and executes it when running the step.
An optional preparatory expression can be provided that is executed
during preparation.
If the top-level expression is a qualified function call (of the format
package::fun()
), the package is installed during preparation.
step_run_code(call = NULL, prepare_call = NULL)
call |
|
prepare_call |
|
Other steps:
step_add_to_drat()
,
step_add_to_known_hosts()
,
step_build_pkgdown()
,
step_do_push_deploy()
,
step_hello_world()
,
step_install_pkg
,
step_install_ssh_keys()
,
step_push_deploy()
,
step_session_info()
,
step_setup_push_deploy()
,
step_setup_ssh()
,
step_test_ssh()
,
step_write_text_file()
dsl_init()
get_stage("install") %>%
add_step(step_run_code(update.packages(ask = FALSE)))
# Will install covr from CRAN during preparation:
get_stage("after_success") %>%
add_code_step(covr::codecov())
dsl_get()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.