Skip to contents

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/.

Usage

build_docs(pkg = NULL, ...)

Arguments

pkg

Package root. Default: find_package_root() via options(DesignLibrary.root=...) or the current working directory.

...

Passed to pkgdown::build_site() (for example devel = TRUE).

Value

Invisibly, the path to docs/.

Examples

if (FALSE) { # \dontrun{
options(DesignLibrary.root = "C:/path/to/DesignLibrary")
build_docs()
} # }