Learn R Programming

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

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

250,035

Version

1.7.2

License

BSD_3_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

February 25th, 2016

Functions in checkmate (1.7.2)

checkInteger

Check if an argument is vector of type integer
assert

Combine multiple checks into one assertion
checkNames

Check names to comply to specific rules
qassertr

Quick recursive arguments checks on lists and data frames
checkNumber

Check if an argument is a single numeric value
checkClass

Check the class membership of an argument
checkCharacter

Check if an argument is a vector of type character
checkComplex

Check if an argument is a vector of type complex
checkScalar

Check if an argument is a single atomic value
checkSubset

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

Check if an argument is a data frame
checkLogical

Check if an argument is a vector of type logical
checkScalarNA

Check if an argument is a single missing value
makeExpectation

Turn a Check into an Expectation
checkSetEqual

Check if an argument is equal to a given set
checkNumeric

Check that an argument is a vector of type numeric
allMissing

Check if an object contains missing values
checkPathForOutput

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

Check if an object contains NaN values
makeTest

Turn a Check into a Test
anyInfinite

Check if an object contains infinite values
checkmate-package

Fast and Versatile Argument Checks
checkInt

Check if an argument is a single integerish value
checkAtomicVector

Check that an argument is an atomic vector
wf

Get the index of the first/last TRUE
checkChoice

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

Quick argument checks on (builtin) R types
checkArray

Check if an argument is an array
makeAssertion

Turn a Check into an Assertion
checkFactor

Check if an argument is a factor
checkOS

Check the operating system
AssertCollection

Collect multiple assertions
asInteger

Convert an argument to an integer
checkFile

Check existence and access rights of files
reexported_qassert

Re-export of qassert
checkCount

Check if an argument is a count
checkVector

Check if an argument is a vector
checkAccess

Check file system access rights
checkIntegerish

Check if an object is an integerish vector
checkDataTable

Check if an argument is a data table
checkMatrix

Check if an argument is a matrix
checkNull

Check if an argument is NULL
reexported_qtest

Re-export of qtest
checkString

Check if an argument is a string
checkFunction

Check if an argument is a function
checkFlag

Check if an argument is a flag
checkDirectory

Check for existence and access rights of directories
checkNamed

Check if an argument is named
checkEnvironment

Check if an argument is an environment
%??%

Coalesce operator
checkAtomic

Check that an argument is an atomic vector
checkList

Check if an argument is a list