Learn R Programming

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

checkmate (version 1.7.4)

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

License

BSD_3_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michel Lang

Last Published

April 8th, 2016

Functions in checkmate (1.7.4)

checkDirectory

Check for existence and access rights of directories
checkAccess

Check file system access rights
checkComplex

Check if an argument is a vector of type complex
anyInfinite

Check if an object contains infinite values
checkLogical

Check if an argument is a vector of type logical
checkSetEqual

Check if an argument is equal to a given set
checkEnvironment

Check if an argument is an environment
wf

Get the index of the first/last TRUE
qassertr

Quick recursive arguments checks on lists and data frames
checkCharacter

Check if an argument is a vector of type character
checkFunction

Check if an argument is a function
AssertCollection

Collect multiple assertions
checkSubset

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

Check if an argument is a data table
checkVector

Check if an argument is a vector
anyNaN

Check if an object contains NaN values
checkOS

Check the operating system
%??%

Coalesce operator
checkArray

Check if an argument is an array
asInteger

Convert an argument to an integer
checkNumeric

Check that an argument is a vector of type numeric
checkIntegerish

Check if an object is an integerish vector
checkAtomicVector

Check that an argument is an atomic vector
makeTest

Turn a Check into a Test
checkList

Check if an argument is a list
checkScalarNA

Check if an argument is a single missing value
checkChoice

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

Check if an argument is a string
makeAssertion

Turn a Check into an Assertion
makeExpectation

Turn a Check into an Expectation
qassert

Quick argument checks on (builtin) R types
checkFlag

Check if an argument is a flag
checkInt

Check if an argument is a single integerish value
checkClass

Check the class membership of an argument
allMissing

Check if an object contains missing values
checkPathForOutput

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

Check names to comply to specific rules
checkInteger

Check if an argument is vector of type integer
checkNull

Check if an argument is NULL
checkNumber

Check if an argument is a single numeric value
checkAtomic

Check that an argument is an atomic vector
checkDate

Check that an argument is a Date
checkScalar

Check if an argument is a single atomic value
checkCount

Check if an argument is a count
checkmate-package

Fast and Versatile Argument Checks
checkMatrix

Check if an argument is a matrix
vname

Lookup a variable name
checkDataFrame

Check if an argument is a data frame
checkFactor

Check if an argument is a factor
checkNamed

Check if an argument is named
assert

Combine multiple checks into one assertion
checkFile

Check existence and access rights of files