Skip to contents

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