Learn R Programming

⚠️There's a newer version (2.3.4) of this package.Take me there.

checkmate (version 1.2)

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.

Copy Link

Version

Install

install.packages('checkmate')

Monthly Downloads

516,389

Version

1.2

License

BSD_3_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

July 21st, 2014

Functions in checkmate (1.2)

checkAtomicVector

Check that an argument is an atomic vector
checkScalar

Check if an argument is a single atomic value
checkMatrix

Check if an argument is a matrix
checkNamed

Check if an argument is named
assert

Combine multiple checks into one assertion
checkChoice

Check if an object is an element of a given set
checkDataFrame

Check if an argument is a data frame
checkComplex

Check if an argument is a vector of type complex
allMissing

Check if an object contains missing values
qassertr

Quick recursive arguments checks on lists and data frames
checkInt

Check if an argument is a single integerish value
checkIntegerish

Check if an object is an integerish vector
checkAccess

Check file system access rights
checkList

Check if an argument is a list
checkVector

Check if an argument is a vector
checkmate

The checkmate package
checkSetEqual

Check if object is a subset of a given set
checkFunction

Check if an argument is a function
checkScalarNA

Check if an argument is a single missing value
asInteger

Convert an argument to an integer
checkAtomic

Check that an argument is an atomic vector
checkNumeric

Check that an argument is a vector of type numeric
checkNumber

Check if an argument is a single numeric
checkSubset

Check if object is a subset of a given set
checkDirectory

Check for existence and access rights of directories
checkLogical

Check if an argument is a vector of type logical
checkFlag

Check if an argument is a flag
checkString

Check if an argument is a string
checkPathForOutput

Check file path for later output
checkFile

Check existence and access rights of files
checkArray

Check if an argument is an array
checkClass

Check argument inheritance
checkInteger

Check if an argument is vector of type integer
checkCharacter

Check if an argument is a vector of type character
qassert

Quick argument checks on (builtin) R types
checkNull

Check if an argument is NULL
checkCount

Check if an argument is a count
checkEnvironment

Check if an argument is an environment
checkFactor

Check if an argument is a factor