Build site for GitHub pagesSource:
Designed to be run as part of automated workflows for deploying
to GitHub pages. It cleans out the old site, builds the site into
.nojekyll file to suppress rendering by Jekyll, and adds a
file if needed.
It is designed to be run in CI, so by default it:
Clean out the old site.
Does not install the package.
build_site_github_pages( pkg = ".", ..., dest_dir = "docs", clean = TRUE, install = FALSE, new_process = FALSE )
Path to package.
Additional arguments passed to
Directory to build site in.
Clean all files from old site.
TRUE, will install the package in a temporary library so it is available for vignettes.
TRUE, will run
build_site()in a separate process. This enhances reproducibility by ensuring nothing that you have loaded in the current process affects the build process.