Learn R Programming

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

checkmate (version 1.4)

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

260,540

Version

1.4

License

BSD_3_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

September 3rd, 2014

Functions in checkmate (1.4)

checkNull

Check if an argument is NULL
checkArray

Check if an argument is an array
checkFactor

Check if an argument is a factor
checkCharacter

Check if an argument is a vector of type character
checkCount

Check if an argument is a count
checkAtomicVector

Check that an argument is an atomic vector
checkAtomic

Check that an argument is an atomic vector
checkFlag

Check if an argument is a flag
asInteger

Convert an argument to an integer
allMissing

Check if an object contains missing values
checkChoice

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

Check if an argument is a string
checkmate

The checkmate package
checkVector

Check if an argument is a vector
checkInteger

Check if an argument is vector of type integer
checkSubset

Check if object is a subset of a given set
qassertr

Quick recursive arguments checks on lists and data frames
checkScalar

Check if an argument is a single atomic value
checkList

Check if an argument is a list
checkMatrix

Check if an argument is a matrix
checkFile

Check existence and access rights of files
checkInt

Check if an argument is a single integerish value
checkIntegerish

Check if an object is an integerish vector
qassert

Quick argument checks on (builtin) R types
checkScalarNA

Check if an argument is a single missing value
checkLogical

Check if an argument is a vector of type logical
checkNamed

Check if an argument is named
checkNumber

Check if an argument is a single numeric
checkEnvironment

Check if an argument is an environment
checkNumeric

Check that an argument is a vector of type numeric
checkDataFrame

Check if an argument is a data frame
checkClass

Check argument inheritance
checkComplex

Check if an argument is a vector of type complex
checkDirectory

Check for existence and access rights of directories
checkSetEqual

Check if object is a subset of a given set
checkPathForOutput

Check file path for later output
checkFunction

Check if an argument is a function
assert

Combine multiple checks into one assertion
checkAccess

Check file system access rights