Skip to content

interfacer

Define and Enforce Contracts for Dataframes as Function Parameters

v0.4.0 · Dec 15, 2025 · MIT + file LICENSE

Description

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.

Downloads

CRAN

218

Last 30 days

20401st

704

Last 90 days

2.9K

Last year

Trend: +36.3% (30d vs prior 30d)

r2u CRAN

10

Last 30 days

25

Last 90 days

120

Last year

Trend: -33.3% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 7, 2026
WARNING r-devel-linux-x86_64-debian-gcc

S3 generic/method consistency

Warning in file(open = "w+") :
  cannot open file '/tmp/RtmpfdVT2Y/Rf3420d19d3cd78': No space left on device
Error in file(open = "w+") : cannot open the connection
Calls: <Anonymous> -> .load_namespace_quietly -> .try_quietly -> file
Execution halted
See section ‘Generic functions and methods’ in the ‘Writing R
Extensions’ manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies dplyr glue magrittr purrr rlang tibble tidyselect stringr forcats knitr lobstr roxygen2 lifecycle interfacer

Version History

5 tracked
new 0.4.0 Mar 10, 2026
updated 0.4.0 ← 0.3.3 diff Dec 14, 2025
updated 0.3.3 ← 0.3.2 diff Feb 2, 2025
updated 0.3.2 ← 0.2.3 diff Nov 13, 2024
new 0.2.3 Jul 31, 2024