The goal of {rpt} is to …
You can install the development version of {rpt} from
GitHub with:
# install.packages("pak")
pak::pak("UCD-SERG/rpt")This is a basic example which shows you how to solve a common problem:
library(rpt)
## basic example codeWhen building the pkgdown documentation site with
pkgdown::build_site(), the function needs to download external
JavaScript and CSS dependencies from CDNs (Content Delivery Networks).
If you’re working in a restricted network environment, you’ll need to
ensure access to the following CDNs:
https://cdnjs.cloudflare.com/- For headroom.js (sticky header functionality)https://cdn.jsdelivr.net/- For bootstrap-toc.js (table of contents) and other Bootstrap dependencies
Without access to these CDNs, pkgdown::build_site() will fail with
errors like:
Error: cannot open URL 'https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js'
These dependencies are automatically cached after the first download, so subsequent builds will be faster and won’t require network access unless the cache is cleared.
If you’re looking for alternative R package templates, you may also want to consider:
- r.pkg.template - A comprehensive R package template from Insights Engineering
Please note that the {rpt} project is released with a Contributor
Code of
Conduct.
By contributing to this project, you agree to abide by its terms.