Tests and assertions to perform frequent argument checks. A substantial part of the package was written in C to minimize any worries about execution time overhead.
checkFlag
checkCount
checkNumber
checkInt
checkString
checkScalar
checkScalarNA
checkLogical
checkNumeric
checkDouble
checkInteger
checkIntegerish
checkCharacter
checkComplex
checkFactor
checkList
checkPOSIXct
checkVector
checkAtomic
checkAtomicVector
checkRaw
checkClass
checkMultiClass
checkNames
checkNamed (deprecated)
checkNamed
checkArray
checkDataFrame
checkMatrix
checkDate
checkEnvironment
checkFunction
checkFormula
checkNull
checkChoice
checkSubset
checkSetEqual
checkDisjunct
checkFileExists
checkDirectoryExists
checkPathForOutput
checkAccess
checkBit
checkDataTable
checkR6
checkTibble
asCount
asInt
asInteger
qassert
qassertr
checkOS (check operating system)
checkOS
assert (combine multiple checks into an assertion)
assert
anyMissing
allMissing
anyNaN
wf (which.first and which.last)
wf
Useful links:
https://github.com/mllg/checkmate
Report bugs at https://github.com/mllg/checkmate/issues