Skip to content

UCD-SERG/rpt

{rpt} (R package template)

R-CMD-check Codecov test coverage CodeFactor CRAN status Lifecycle: experimental

The goal of {rpt} is to …

Installation

You can install the development version of {rpt} from GitHub with:

# install.packages("pak")
pak::pak("UCD-SERG/rpt")

Example

This is a basic example which shows you how to solve a common problem:

library(rpt)
## basic example code

Development

Building the pkgdown Site

When 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.

Other R Package Template Options

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

Code of Conduct

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.

About

A template for R packages

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •