Learn R Programming

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

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

260,540

Version

1.8.1

License

BSD_3_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

June 28th, 2016

Functions in checkmate (1.8.1)

checkAtomicVector

Check that an argument is an atomic vector
checkAtomic

Check that an argument is an atomic vector
anyInfinite

Check if an object contains infinite values
checkAccess

Check file system access rights
allMissing

Check if an object contains missing values
asInteger

Convert an argument to an integer
AssertCollection

Collect multiple assertions
assert

Combine multiple checks into one assertion
checkArray

Check if an argument is an array
anyNaN

Check if an object contains NaN values
checkClass

Check the class membership of an argument
checkDataTable

Check if an argument is a data table
checkComplex

Check if an argument is a vector of type complex
checkDataFrame

Check if an argument is a data frame
checkCount

Check if an argument is a count
checkCharacter

Check if an argument is a vector of type character
checkDirectoryExists

Check for existence and access rights of directories
checkEnvironment

Check if an argument is an environment
checkChoice

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

Check that an argument is a Date
checkIntegerish

Check if an object is an integerish vector
checkInteger

Check if an argument is vector of type integer
checkmate-package

Fast and Versatile Argument Checks
checkFunction

Check if an argument is a function
checkLogical

Check if an argument is a vector of type logical
checkList

Check if an argument is a list
checkFileExists

Check existence and access rights of files
checkFactor

Check if an argument is a factor
checkFlag

Check if an argument is a flag
checkInt

Check if an argument is a single integerish value
checkNumeric

Check that an argument is a vector of type numeric
checkNumber

Check if an argument is a single numeric value
checkScalarNA

Check if an argument is a single missing value
checkNamed

Check if an argument is named
checkNames

Check names to comply to specific rules
checkPathForOutput

Check if a path is suited for creating an output file
%??%

Coalesce operator
makeAssertion

Turn a Check into an Assertion
qassert

Quick argument checks on (builtin) R types
makeTest

Turn a Check into a Test
checkVector

Check if an argument is a vector
checkMatrix

Check if an argument is a matrix
matchArg

Partial Argument Matching
checkSetEqual

Check if an argument is equal to a given set
checkNull

Check if an argument is NULL
checkOS

Check the operating system
checkScalar

Check if an argument is a single atomic value
wf

Get the index of the first/last TRUE
vname

Lookup a variable name
checkSubset

Check if an argument is a subset of a given set
checkString

Check if an argument is a string
makeExpectation

Turn a Check into an Expectation
qassertr

Quick recursive arguments checks on lists and data frames