Learn R Programming

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

checkmate (version 1.6.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

1,340,729

Version

1.6.2

License

BSD_3_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

July 26th, 2015

Functions in checkmate (1.6.2)

assert

Combine multiple checks into one assertion
checkLogical

Check if an argument is a vector of type logical
anyNaN

Check if an object contains NaN values
allMissing

Check if an object contains missing values
checkFile

Check existence and access rights of files
checkNumber

Check if an argument is a single numeric
checkScalar

Check if an argument is a single atomic value
checkArray

Check if an argument is an array
checkChoice

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

Check if an argument is a vector of type character
checkList

Check if an argument is a list
checkScalarNA

Check if an argument is a single missing value
checkNull

Check if an argument is NULL
checkNames

Check names to comply to specific rules
asInteger

Convert an argument to an integer
checkNumeric

Check that an argument is a vector of type numeric
checkFactor

Check if an argument is a factor
checkDataFrame

Check if an argument is a data frame
checkNamed

Check if an argument is named
checkComplex

Check if an argument is a vector of type complex
checkAtomicVector

Check that an argument is an atomic vector
checkFunction

Check if an argument is a function
checkString

Check if an argument is a string
checkClass

Check argument inheritance
checkInteger

Check if an argument is vector of type integer
checkMatrix

Check if an argument is a matrix
anyInfinite

Check if an object contains infinte values
checkFlag

Check if an argument is a flag
checkSetEqual

Check if object is a subset of a given set
checkVector

Check if an argument is a vector
checkInt

Check if an argument is a single integerish value
qassertr

Quick recursive arguments checks on lists and data frames
checkmate

The checkmate package
%??%

Coalesce operator
checkPathForOutput

Check file path for later output
checkCount

Check if an argument is a count
checkEnvironment

Check if an argument is an environment
checkSubset

Check if object is a subset of a given set
qassert

Quick argument checks on (builtin) R types
checkAtomic

Check that an argument is an atomic vector
checkIntegerish

Check if an object is an integerish vector
checkPercentage

Check if an argument is a percentage
checkAccess

Check file system access rights
checkDirectory

Check for existence and access rights of directories