Live previews for your pkgdown site. Edit your package, hit save, and updoc rebuilds what changed and refreshes your browser.
Installation
Install updoc from GitHub:
# install.packages("pak")
pak::pak("leightonpayne/updoc")You’ll need Pandoc 2.10.1 or newer installed. To point updoc at a specific copy, pass pandoc = "/path/to/bin".
Quick start
From inside your R package, run:
updoc::serve()Your site opens in the browser. Edit your files and save as usual: updoc rebuilds only what changed, leaves your package’s generated files untouched while previewing, and keeps the last working preview up if something breaks. Press Ctrl+C when you’re done.
Learn more
- Get started: walk through live previews, keeping your R console free, checking your site, and building to publish.
- Options: tune rebuild behavior, popup theme, Pandoc path, ports, and automation for CI or AI agents.
-
Function reference: full details on
serve(),preview(),check(), andbuild().