interfacer: Define and Enforce Contracts for Dataframes as Function Parameters

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.

Package details

AuthorRobert Challen [aut, cre, cph] (<https://orcid.org/0000-0002-5504-7768>)
MaintainerRobert Challen <rob.challen@bristol.ac.uk>
LicenseMIT + file LICENSE
Version0.3.3
URL https://ai4ci.github.io/interfacer/ https://github.com/ai4ci/interfacer
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("interfacer")

Try the interfacer package in your browser

Any scripts or data that you put into this service are public.

interfacer documentation built on April 4, 2025, 6:13 a.m.