interfacer: Define and Enforce Contracts for Dataframes as Function Parameters (original) (raw)

A dataframe validation framework for package builders who use dataframes as function parameters. It performs checks on column names, coerces data-types, and checks grouping to make sure user inputs conform to a specification provided by the package author. It provides a mechanism for package authors to automatically document supported dataframe inputs and selectively dispatch to functions depending on the format of a dataframe much like S3 does for classes. It also contains some developer tools to make working with and documenting dataframe specifications easier. It helps package developers to improve their documentation and simplifies parameter validation where dataframes are used as function parameters.

Version: 0.3.3
Depends: R (≥ 2.10)
Imports: dplyr, glue, magrittr, purrr, rlang, tibble, tidyselect, stringr, forcats, knitr, digest, roxygen2
Suggests: rmarkdown, devtools, ggplot2, testthat (≥ 3.0.0), fs, readr, usethis, whisker, clipr, tidyr, binom, spelling
Published: 2025-02-03
DOI: 10.32614/CRAN.package.interfacer
Author: Robert Challen ORCID iD [aut, cre, cph]
Maintainer: Robert Challen <rob.challen at bristol.ac.uk>
BugReports: https://github.com/ai4ci/interfacer/issues
License: MIT + file
URL: https://ai4ci.github.io/interfacer/,https://github.com/ai4ci/interfacer
NeedsCompilation: no
Language: en-GB
Materials: README, NEWS
CRAN checks: interfacer results

Documentation:

Downloads:

Linking:

Please use the canonical formhttps://CRAN.R-project.org/package=interfacerto link to this page.