Currently, build_site
builds documentation for help topics,
vignettes, demos, and a README.md
, if present.
build_site(pkg = ".", site_path = "docs", examples = TRUE,
run_dont_run = FALSE, templates_path = "inst/staticdocs/templates",
bootstrap_path = "inst/staticdocs/bootstrap", mathjax = TRUE,
with_vignettes = TRUE, with_demos = TRUE, launch = interactive())
path to source version of package. See
as.package
for details on how paths and package
names are resolved.
root Directory in which to create documentation.
Run examples?
Run examples that are surrounded in \dontrun?
Path in which to look for templates. If this doesn't
exist will look next in pkg/inst/staticdocs/templates
, then
in staticdocs itself.
Path in which to look for bootstrap files. If this doesn't exist, will use files built into staticdocs.
Use mathjax to render math symbols?
If TRUE
, will build vignettes.
If TRUE
, will build demos.
If TRUE
, will open freshly generated site in web
browser.
The home page is generated from inst/staticdocs/README.md
,
README.md
, or the DESCRIPTION
if neither readme file is
present. On the homepage, you should show how to install the package,
describe what it does, and provide an example of how to use it.
# NOT RUN {
build_site()
# }
Run the code above in your browser using DataCamp Workspace