Learn R Programming

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

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

License

BSD_3_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

February 2nd, 2016

Functions in checkmate (1.7.1)

checkFile

Check existence and access rights of files
allMissing

Check if an object contains missing values
checkCount

Check if an argument is a count
checkAtomicVector

Check that an argument is an atomic vector
AssertCollection

Collect multiple assertions
checkChoice

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

Check file system access rights
asInteger

Convert an argument to an integer
checkIntegerish

Check if an object is an integerish vector
checkFlag

Check if an argument is a flag
assert

Combine multiple checks into one assertion
checkClass

Check the class membership of an argument
checkFunction

Check if an argument is a function
checkComplex

Check if an argument is a vector of type complex
checkNull

Check if an argument is NULL
checkFactor

Check if an argument is a factor
checkLogical

Check if an argument is a vector of type logical
checkScalar

Check if an argument is a single atomic value
%??%

Coalesce operator
checkArray

Check if an argument is an array
makeTest

Turn a Check into a Test
checkInt

Check if an argument is a single integerish value
makeExpectation

Turn a Check into an Expectation
checkmate-package

Fast and Versatile Argument Checks
anyInfinite

Check if an object contains infinite values
checkDataTable

Check if an argument is a data table
reexported_qassert

Re-export of qassert
checkVector

Check if an argument is a vector
checkSubset

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

Re-export of qtest
checkPathForOutput

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

Check that an argument is a vector of type numeric
qassert

Quick argument checks on (builtin) R types
anyNaN

Check if an object contains NaN values
checkDirectory

Check for existence and access rights of directories
checkNumber

Check if an argument is a single numeric value
checkInteger

Check if an argument is vector of type integer
checkMatrix

Check if an argument is a matrix
checkSetEqual

Check if an argument is equal to a given set
checkNames

Check names to comply to specific rules
checkString

Check if an argument is a string
checkCharacter

Check if an argument is a vector of type character
checkNamed

Check if an argument is named
checkDataFrame

Check if an argument is a data frame
makeAssertion

Turn a Check into an Assertion
checkEnvironment

Check if an argument is an environment
checkList

Check if an argument is a list
qassertr

Quick recursive arguments checks on lists and data frames
checkAtomic

Check that an argument is an atomic vector
checkScalarNA

Check if an argument is a single missing value