Learn R Programming

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

checkmate (version 1.6.1)

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.1

License

BSD_3_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

July 17th, 2015

Functions in checkmate (1.6.1)

checkArray

Check if an argument is an array
assert

Combine multiple checks into one assertion
checkComplex

Check if an argument is a vector of type complex
checkFunction

Check if an argument is a function
allMissing

Check if an object contains missing values
checkChoice

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

Check names to comply to specific rules
checkFactor

Check if an argument is a factor
checkClass

Check argument inheritance
anyInfinite

Check if an object contains infinte values
checkCount

Check if an argument is a count
checkAtomic

Check that an argument is an atomic vector
checkScalarNA

Check if an argument is a single missing value
checkAtomicVector

Check that an argument is an atomic vector
checkPathForOutput

Check file path for later output
checkPercentage

Check if an argument is a percentage
checkFlag

Check if an argument is a flag
checkNumeric

Check that an argument is a vector of type numeric
checkIntegerish

Check if an object is an integerish vector
qassertr

Quick recursive arguments checks on lists and data frames
checkLogical

Check if an argument is a vector of type logical
checkList

Check if an argument is a list
checkScalar

Check if an argument is a single atomic value
checkDirectory

Check for existence and access rights of directories
checkAccess

Check file system access rights
checkInt

Check if an argument is a single integerish value
checkString

Check if an argument is a string
%??%

Coalesce operator
checkMatrix

Check if an argument is a matrix
checkInteger

Check if an argument is vector of type integer
checkmate

The checkmate package
checkNamed

Check if an argument is named
checkNumber

Check if an argument is a single numeric
checkSubset

Check if object is a subset of a given set
checkEnvironment

Check if an argument is an environment
checkVector

Check if an argument is a vector
asInteger

Convert an argument to an integer
anyNaN

Check if an object contains NaN values
checkCharacter

Check if an argument is a vector of type character
checkFile

Check existence and access rights of files
checkNull

Check if an argument is NULL
checkDataFrame

Check if an argument is a data frame
qassert

Quick argument checks on (builtin) R types
checkSetEqual

Check if object is a subset of a given set