Learn R Programming

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

checkmate (version 1.7.3)

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

314,543

Version

1.7.3

License

BSD_3_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

March 10th, 2016

Functions in checkmate (1.7.3)

checkDataTable

Check if an argument is a data table
checkFile

Check existence and access rights of files
checkAccess

Check file system access rights
qassert

Quick argument checks on (builtin) R types
asInteger

Convert an argument to an integer
checkSetEqual

Check if an argument is equal to a given set
checkNull

Check if an argument is NULL
checkCount

Check if an argument is a count
reexported_qassert

Re-export of qassert
allMissing

Check if an object contains missing values
anyInfinite

Check if an object contains infinite values
checkNamed

Check if an argument is named
assert

Combine multiple checks into one assertion
%??%

Coalesce operator
checkmate-package

Fast and Versatile Argument Checks
anyNaN

Check if an object contains NaN values
makeTest

Turn a Check into a Test
checkNumeric

Check that an argument is a vector of type numeric
checkNumber

Check if an argument is a single numeric value
AssertCollection

Collect multiple assertions
checkScalar

Check if an argument is a single atomic value
checkAtomicVector

Check that an argument is an atomic vector
checkDataFrame

Check if an argument is a data frame
qassertr

Quick recursive arguments checks on lists and data frames
checkFunction

Check if an argument is a function
checkPathForOutput

Check if a path is suited for creating an output file
checkSubset

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

Check if an argument is a vector of type character
checkChoice

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

Check if an argument is a single integerish value
reexported_qtest

Re-export of qtest
checkComplex

Check if an argument is a vector of type complex
checkList

Check if an argument is a list
checkIntegerish

Check if an object is an integerish vector
checkFactor

Check if an argument is a factor
checkInteger

Check if an argument is vector of type integer
checkEnvironment

Check if an argument is an environment
checkMatrix

Check if an argument is a matrix
checkAtomic

Check that an argument is an atomic vector
checkVector

Check if an argument is a vector
checkFlag

Check if an argument is a flag
checkArray

Check if an argument is an array
checkLogical

Check if an argument is a vector of type logical
checkOS

Check the operating system
makeExpectation

Turn a Check into an Expectation
checkString

Check if an argument is a string
wf

Get the index of the first/last TRUE
checkScalarNA

Check if an argument is a single missing value
checkDirectory

Check for existence and access rights of directories
makeAssertion

Turn a Check into an Assertion
checkClass

Check the class membership of an argument
checkDate

Check that an argument is a Date
checkNames

Check names to comply to specific rules