stopifnotby R Core
vetrby Yours Truly
asserthatby Hadley Wickham
assertiveby Richie Cotton
checkmateby Michel Lang
The following packages also perform related tasks, although we do not review them:
valaddinv0.1.0 by Eugene Ha, a framework for augmenting existing functions with validation contracts. Currently the package is undergoing a major overhaul so we will add it to the comparison once the new release (v0.3.0) is out.
ensurerv1.1 by Stefan M. Bache, a framework for flexibly creating and combining validation contracts. The development version adds an experimental method for creating type safe functions, but it is not published to CRAN so we do not test it here.
validateby Mark van der Loo and Edwin de Jonge, with a primary focus on validating data in data frames and similar data structures.
assertrby Tony Fischetti, also focused on data validation in data frames and similar structures.
typesby Jim Hester, which implements but does not enforce type hinting.
argufyby Gábor Csárdi, which implements parameter validation via roxygen tags (not released to CRAN).