Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bristol-vaccine-centre/pkgutils
Functions for writing R functions
https://github.com/bristol-vaccine-centre/pkgutils
Last synced: about 2 months ago
JSON representation
Functions for writing R functions
- Host: GitHub
- URL: https://github.com/bristol-vaccine-centre/pkgutils
- Owner: bristol-vaccine-centre
- License: other
- Created: 2023-08-16T10:14:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T16:05:14.000Z (10 months ago)
- Last Synced: 2024-08-13T07:10:09.748Z (5 months ago)
- Language: R
- Homepage: https://bristol-vaccine-centre.github.io/pkgutils/
- Size: 506 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - bristol-vaccine-centre/pkgutils - Functions for writing R functions (R)
README
# pkgutils
[![DOI](https://zenodo.org/badge/679201735.svg)](https://zenodo.org/badge/latestdoi/679201735)
[![pkgutils status
badge](https://bristol-vaccine-centre.r-universe.dev/badges/pkgutils)](https://bristol-vaccine-centre.r-universe.dev)
[![R-CMD-check](https://github.com/bristol-vaccine-centre/pkgutils/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/bristol-vaccine-centre/pkgutils/actions/workflows/R-CMD-check.yaml)`pkgutils` is a set of functions for making writing R functions easier. The
intention is to be included as a dependency in R packages and therefore is
designed with the package author as the end user. The functions provided fall
into 2 categories, those that focus on validating parameters for completeness
and consistency of length, and those that focus on working with dataframe inputs
which have multiple layers of grouping, or where a function may need to be
configured to operate on different columns, or different column groups.It is a maturing package and behaviour may evolve over time.
## Installation
`pkgutils` is part of the [Bristol Vaccine Centre r-universe](https://bristol-vaccine-centre.r-universe.dev/).
Installation from there is as follows:``` r
options(repos = c(
"bristol-vaccine-centre" = 'https://bristol-vaccine-centre.r-universe.dev/',
CRAN = 'https://cloud.r-project.org'))# Download and install growthrates in R
install.packages("pkgutils")
```You can install the development version of `pkgutils` from
[GitHub](https://github.com/bristol-vaccine-centre/pkgutils) with:``` r
# install.packages("devtools")
devtools::install_github("bristol-vaccine-centre/pkgutils")
```