Learn R Programming

pkgdown.offline

pkgdown.offline provides support for offline builds of pkgdown websites, especially for pkgdown versions >= 2.1.0.

It works by bundling cached frontend dependencies from different pkgdown versions and implementing drop-in replacements for key functions. This allows you to build documentation websites in development workflows or CI/CD pipelines without internet access.

Installation

You can install pkgdown.offline from CRAN:

install.packages("pkgdown.offline")

Or try the development version from GitHub:

# install.packages("remotes")
remotes::install_github("nanxstats/pkgdown.offline")

Usage

Use pkgdown.offline::build_site() and pkgdown.offline::init_site() to replace the original pkgdown::build_site() or pkgdown::init_site() calls in your original development or CI/CD workflow.

Disclaimer

pkgdown.offline is an independent third-party solution not endorsed by, affiliated with, or supported by the authors of pkgdown. It is developed solely as a community contribution to address a specific use case and is not an official extension of the pkgdown project.

Contributing

We welcome contributions to pkgdown.offline. Please read the Contributing Guidelines first.

All interactions within pkgdown.offline repositories and issue trackers should adhere to the Contributor Code of Conduct.

Copy Link

Version

Install

install.packages('pkgdown.offline')

Monthly Downloads

167

Version

0.1.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Nan Xiao

Last Published

November 8th, 2025

Functions in pkgdown.offline (0.1.2)

pkgdown.offline-package

pkgdown.offline: Build 'pkgdown' Websites Offline
clear_cache

Clear pkgdown cache if any
init_site

Initialize site infrastructure offline
build_site

Build a complete pkgdown website offline