# Build site for current package
build_site()
# Build lazily (only changed files)
build_site(lazy = TRUE)
# Clean build (removes all caches first)
build_site(clean = TRUE)
# Preview after building (use quarto directly)
build_site()
quarto::quarto_preview()Build Package Documentation Site
Source: R/build.R
Main functions for building a complete documentation website using Quarto. Build the complete documentation site
Orchestrates building all components of the documentation site: index page, function reference, articles from vignettes, news, and citation.
Usage
build_site(
pkg = ".",
examples = TRUE,
lazy = FALSE,
clean = FALSE,
readme = TRUE,
quiet = FALSE
)Arguments
-
pkg -
Path to the package root directory
-
examples -
Whether to run code examples (default TRUE)
-
lazy -
Only rebuild files that have changed (default FALSE)
-
clean -
Run
clean_site()before building to remove all generated files and caches (default FALSE). Useful when builds fail due to stale cache or when you want a completely fresh build. -
readme -
Render
README.qmdtoREADME.mdbefore building the home page (default TRUE). Has no effect when there is noREADME.qmd; aREADME.Rmdis not rendered, but a warning is given whenREADME.mdis older than it. -
quiet -
Suppress progress messages (default FALSE)
Value
Invisibly returns the path to the built site