Fast and versatile argument checks for R functions
open sourceBSD-3-Clausefree
checkmate is an R package of tests and assertions for checking the arguments passed to a function, so a wrong argument fails with an informative error message in one readable line. Much of it is written in C to keep the overhead low, and it adds over 30 expectations to testthat for unit tests.
Problems it solves
- validate the arguments of my R function with clear error messages
- assert argument types in an R package without slowing it down
- write testthat expectations for argument types
Features
- check, test and assert functions for common argument types
- informative error messages
- core written in C for low overhead
- over 30 expectations for testthat
