Learn R Programming

DesignLibrary (version 2.0.0)

build_docs: Build the pkgdown site (Dropbox-safe)

Description

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, ...)

Value

Invisibly, the path to docs/.

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

Examples

Run this code
if (FALSE) {
options(DesignLibrary.root = "C:/path/to/DesignLibrary")
build_docs()
}

Run the code above in your browser using DataLab