step_setup_push_deploy | R Documentation |
Clones a repo, inits author information, and sets up remotes
for a subsequent step_do_push_deploy()
.
step_setup_push_deploy(
path = ".",
branch = NULL,
orphan = FALSE,
remote_url = NULL,
checkout = TRUE
)
path |
|
branch |
|
orphan |
|
remote_url |
|
checkout |
|
Other deploy steps:
step_do_push_deploy()
,
step_push_deploy()
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_run_code()
,
step_session_info()
,
step_setup_ssh()
,
step_test_ssh()
,
step_write_text_file()
## Not run:
dsl_init()
get_stage("deploy") %>%
add_step(step_setup_push_deploy(path = "docs", branch = "gh-pages")) %>%
add_step(step_build_pkgdown())
# This example needs a Git repository
if (rlang::is_installed("git2r") && git2r::in_repository()) {
# Deployment only works if a companion step_do_push_deploy() is added
get_stage("deploy") %>%
add_step(step_do_push_deploy(path = "docs"))
}
dsl_get()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.