Skip to contents

Rebuilding the package

If altering the code, it is a good idea to regularly check that the R package is building properly and that all checks are OK. This can be done using:

devtools::document()
devtools::test()
devtools::check()
devtools::build()
devtools::install()

The website is automatically built and launched online when the GitHub repository is updated. However, sometimes it may be useful to build the website locally, this can be done using:

pkgdown::build_site()

See https://pkgdown.r-lib.org/index.html or https://github.com/r-lib/pkgdown for a detailed description of pkgdown (Wickham et al. 2025).

References

Wickham, Hadley, Jay Hesselberth, Maëlle Salmon, Olivier Roy, and Salim Brüggemann. 2025. Pkgdown: Make Static HTML Documentation for a Package. https://pkgdown.r-lib.org/.