Learn R Programming

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

checkmate (version 1.7.0)

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

License

BSD_3_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

January 23rd, 2016

Functions in checkmate (1.7.0)

anyInfinite

Check if an object contains infinite values
allMissing

Check if an object contains missing values
asInteger

Convert an argument to an integer
checkScalar

Check if an argument is a single atomic value
checkAtomic

Check that an argument is an atomic vector
checkDirectory

Check for existence and access rights of directories
checkPathForOutput

Check file path for later output
checkDataTable

Check if an argument is a data table
checkChoice

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

Check if an argument is a vector of type character
checkList

Check if an argument is a list
checkFlag

Check if an argument is a flag
checkVector

Check if an argument is a vector
checkNull

Check if an argument is NULL
checkDataFrame

Check if an argument is a data frame
checkClass

Check argument inheritance
checkAccess

Check file system access rights
makeExpectation

Turn a Check into an Expectation
checkEnvironment

Check if an argument is an environment
checkAtomicVector

Check that an argument is an atomic vector
assert

Combine multiple checks into one assertion
reexported_qassert

Re-export of qassert
checkFactor

Check if an argument is a factor
checkArray

Check if an argument is an array
anyNaN

Check if an object contains NaN values
AssertCollection

Collect multiple assertions
checkInt

Check if an argument is a single integerish value
checkMatrix

Check if an argument is a matrix
checkFunction

Check if an argument is a function
checkInteger

Check if an argument is vector of type integer
checkFile

Check existence and access rights of files
checkNames

Check names to comply to specific rules
checkNumeric

Check that an argument is a vector of type numeric
makeAssertion

Turn a Check into an Assertion
checkmate-package

Fast and Versatile Argument Checks
checkSubset

Check if object is a subset of a given set
checkScalarNA

Check if an argument is a single missing value
qassertr

Quick recursive arguments checks on lists and data frames
checkComplex

Check if an argument is a vector of type complex
%??%

Coalesce operator
checkNumber

Check if an argument is a single numeric
reexported_qtest

Re-export of qtest
checkNamed

Check if an argument is named
checkSetEqual

Check if object is a subset of a given set
checkLogical

Check if an argument is a vector of type logical
qassert

Quick argument checks on (builtin) R types
checkString

Check if an argument is a string
makeTest

Turn a Check into a Test
checkIntegerish

Check if an object is an integerish vector
checkCount

Check if an argument is a count