R: Fast and Versatile Argument Checks

checkmate-package {checkmate} | R Documentation

## Fast and Versatile Argument Checks

### Description

Homepage:

  https://github.com/mllg/checkmate

Bug Reports:

  https://github.com/mllg/checkmate/issues

### Overview of implemented functions

Check scalars:

- `checkFlag`

- `checkCount`

- `checkNumber`

- `checkInt`

- `checkString`

- `checkScalar`

- `checkScalarNA`

Check vectors:

- `checkLogical`

- `checkNumeric`

- `checkInteger`

- `checkIntegerish`

- `checkComplex`

- `checkFactor`

- `checkList`

- `checkVector`

- `checkAtomic`

- `checkAtomicVector`

Check attributes:

- `checkClass`

- `checkNames`

- `checkNamed`

Check compound types:

- `checkMatrix`

- `checkArray`

- `checkDataFrame`

- `checkDataTable`

- `checkTibble`

Check other built-in R types:

- `checkNull`

- `checkEnvironment`

- `checkFunction`

- `checkDate`

Check sets:

- `checkChoice`

- `checkSubset`

- `checkSetEqual`

File IO:

- `checkFileExists`

- `checkDirectoryExists`

- `checkPathForOutput`

- `checkAccess`

Safe coercion to integer:

- `asCount`

- `asInt`

- `asInteger`

Quick argument checks using a DSL:

- `qassert`

- `qassertr`

Misc:

- `checkOS` (check operating system)

- `assert` (combine multiple checks into an assertion)

- `anyMissing`

- `allMissing`

- `anyNaN`

- `wf` (which.first and which.last)

[Package checkmate version 1.8.2 Index]