On Windows Dropbox folders, pkgdown::build_site() / build_article() often
fail in xml2::write_html() with "Invalid argument" / "Error closing file"
when writing directly into docs/. This helper builds into a local temp
directory, then copies the result into docs/.
Arguments
- pkg
Package root. Default:
find_package_root()viaoptions(DesignLibrary.root=...)or the current working directory.- ...
Passed to
pkgdown::build_site()(for exampledevel = TRUE).
Examples
if (FALSE) { # \dontrun{
options(DesignLibrary.root = "C:/path/to/DesignLibrary")
build_docs()
} # }