checkmate-package: checkmate: Fast and Versatile Argument Checks

checkmate-packageR Documentation

checkmate: Fast and Versatile Argument Checks

Description

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.

Check scalars

  • checkFlag

  • checkCount

  • checkNumber

  • checkInt

  • checkString

  • checkScalar

  • checkScalarNA

Check vectors

  • checkLogical

  • checkNumeric

  • checkDouble

  • checkInteger

  • checkIntegerish

  • checkCharacter

  • checkComplex

  • checkFactor

  • checkList

  • checkPOSIXct

  • checkVector

  • checkAtomic

  • checkAtomicVector

  • checkRaw

Check attributes

  • checkClass

  • checkMultiClass

  • checkNames

  • checkNamed (deprecated)

Check compound types

  • checkArray

  • checkDataFrame

  • checkMatrix

Check other built-in R types

  • checkDate

  • checkEnvironment

  • checkFunction

  • checkFormula

  • checkNull

Check sets

  • checkChoice

  • checkSubset

  • checkSetEqual

  • checkDisjunct

  • checkPermutation

File IO

  • checkFileExists

  • checkDirectoryExists

  • checkPathForOutput

  • checkAccess

Popular data types of third party packages

  • checkDataTable

  • checkR6

  • checkTibble

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)

Author(s)

Maintainer: Michel Lang michellang@gmail.com (ORCID)

Other contributors:

See Also

Useful links:


checkmate documentation built on Oct. 25, 2023, 5:06 p.m.