checkmate: Fast and Versatile Argument Checks

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.

AuthorMichel Lang [cre, aut], Bernd Bischl [ctb]
Date of publication2016-11-02 18:15:25
MaintainerMichel Lang <michellang@gmail.com>
LicenseBSD_3_clause + file LICENSE
Version1.8.2
https://github.com/mllg/checkmate

View on CRAN

Man pages

anyInfinite: Check if an object contains infinite values

anyMissing: Check if an object contains missing values

anyNaN: Check if an object contains NaN values

asInteger: Convert an argument to an integer

assert: Combine multiple checks into one assertion

AssertCollection: Collect multiple assertions

checkAccess: Check file system access rights

checkArray: Check if an argument is an array

checkAtomic: Check that an argument is an atomic vector

checkAtomicVector: Check that an argument is an atomic vector

checkCharacter: Check if an argument is a vector of type character

checkChoice: Check if an object is an element of a given set

checkClass: Check the class membership of an argument

checkComplex: Check if an argument is a vector of type complex

checkCount: Check if an argument is a count

checkDataFrame: Check if an argument is a data frame

checkDataTable: Check if an argument is a data table

checkDate: Check that an argument is a Date

checkDirectoryExists: Check for existence and access rights of directories

checkEnvironment: Check if an argument is an environment

checkFactor: Check if an argument is a factor

checkFileExists: Check existence and access rights of files

checkFlag: Check if an argument is a flag

checkFunction: Check if an argument is a function

checkInt: Check if an argument is a single integerish value

checkInteger: Check if an argument is vector of type integer

checkIntegerish: Check if an object is an integerish vector

checkList: Check if an argument is a list

checkLogical: Check if an argument is a vector of type logical

checkmate-package: Fast and Versatile Argument Checks

checkMatrix: Check if an argument is a matrix

checkNamed: Check if an argument is named

checkNames: Check names to comply to specific rules

checkNull: Check if an argument is NULL

checkNumber: Check if an argument is a single numeric value

checkNumeric: Check that an argument is a vector of type numeric

checkOS: Check the operating system

checkPathForOutput: Check if a path is suited for creating an output file

checkScalar: Check if an argument is a single atomic value

checkScalarNA: Check if an argument is a single missing value

checkSetEqual: Check if an argument is equal to a given set

checkString: Check if an argument is a string

checkSubset: Check if an argument is a subset of a given set

checkTibble: Check if an argument is a tibble

checkVector: Check if an argument is a vector

coalesce: Coalesce operator

makeAssertion: Turn a Check into an Assertion

makeExpectation: Turn a Check into an Expectation

makeTest: Turn a Check into a Test

matchArg: Partial Argument Matching

qassert: Quick argument checks on (builtin) R types

qassertr: Quick recursive arguments checks on lists and data frames

vname: Lookup a variable name

wf: Get the index of the first/last TRUE

Files in this package

checkmate
checkmate/inst
checkmate/inst/doc
checkmate/inst/doc/checkmate.R
checkmate/inst/doc/checkmate.Rmd
checkmate/inst/doc/checkmate.html
checkmate/inst/include
checkmate/inst/include/checkmate.h
checkmate/inst/include/checkmate_stub.c
checkmate/tests
checkmate/tests/testthat
checkmate/tests/testthat/test_checkCharacter.R
checkmate/tests/testthat/test_qassertr.R
checkmate/tests/testthat/test_checkCount.R
checkmate/tests/testthat/test_AssertCollection.R
checkmate/tests/testthat/test_checkNull.R
checkmate/tests/testthat/test_interoperability.R
checkmate/tests/testthat/test_messages.R
checkmate/tests/testthat/test_checkDataTable.R
checkmate/tests/testthat/test_checkSubset.R
checkmate/tests/testthat/test_anyNaN.R
checkmate/tests/testthat/test_checkScalarNA.R
checkmate/tests/testthat/test_checkFilesystem.R
checkmate/tests/testthat/test_checkNames.R
checkmate/tests/testthat/test_checkScalar.R
checkmate/tests/testthat/test_checkString.R
checkmate/tests/testthat/test_matchArg.R
checkmate/tests/testthat/test_checkComplex.R
checkmate/tests/testthat/test_makeFunction.R
checkmate/tests/testthat/test_include.R
checkmate/tests/testthat/test_checkNumeric.R
checkmate/tests/testthat/test_wf.R
checkmate/tests/testthat/test_checkInteger.R
checkmate/tests/testthat/test_checkMatrix.R
checkmate/tests/testthat/test_qassert.R
checkmate/tests/testthat/test_checkFactor.R
checkmate/tests/testthat/test_checkTibble.R
checkmate/tests/testthat/test_checkArray.R
checkmate/tests/testthat/test_checkInt.R
checkmate/tests/testthat/test_assert.R
checkmate/tests/testthat/test_checkClass.R
checkmate/tests/testthat/test_checkNamed.R
checkmate/tests/testthat/test_checkChoice.R
checkmate/tests/testthat/helper.R
checkmate/tests/testthat/test_asType.R
checkmate/tests/testthat/test_checkAtomic.R
checkmate/tests/testthat/test_checkLogical.R
checkmate/tests/testthat/test_checkNumber.R
checkmate/tests/testthat/test_checkAtomicVector.R
checkmate/tests/testthat/test_anyMissing.R
checkmate/tests/testthat/test_checkDate.R
checkmate/tests/testthat/test_checkFlag.R
checkmate/tests/testthat/test_anyInfinite.R
checkmate/tests/testthat/test_guessType.R
checkmate/tests/testthat/test_checkSetEqual.R
checkmate/tests/testthat/test_checkVector.R
checkmate/tests/testthat/test_checkIntegerish.R
checkmate/tests/testthat/test_checkDataFrame.R
checkmate/tests/testthat/test_checkFunction.R
checkmate/tests/testthat/test_checkList.R
checkmate/tests/testthat/test_checkEnvironment.R
checkmate/tests/testthat/test_checkOS.R
checkmate/tests/testthat/test_deparse.R
checkmate/tests/test-all.R
checkmate/src
checkmate/src/which_first.c
checkmate/src/any_infinite.h
checkmate/src/helper.h
checkmate/src/guess_type.h
checkmate/src/helper.c
checkmate/src/is_integerish.h
checkmate/src/any_nan.c
checkmate/src/any_infinite.c
checkmate/src/all_nchar.h
checkmate/src/all_nchar.c
checkmate/src/any_missing.c
checkmate/src/any_nan.h
checkmate/src/guess_type.c
checkmate/src/which_first.h
checkmate/src/all_missing.h
checkmate/src/checks.c
checkmate/src/checkmate_init.c
checkmate/src/any_missing.h
checkmate/src/qassert.c
checkmate/src/is_integerish.c
checkmate/src/all_missing.c
checkmate/src/checks.h
checkmate/src/qassert.h
checkmate/NAMESPACE
checkmate/NEWS.md
checkmate/R
checkmate/R/checkNumber.R checkmate/R/checkAccess.R checkmate/R/checkAtomicVector.R checkmate/R/checkCharacter.R checkmate/R/matchArg.R checkmate/R/makeExpectation.R checkmate/R/coalesce.R checkmate/R/checkInt.R checkmate/R/checkIntegerish.R checkmate/R/checkDataTable.R checkmate/R/checkSetEqual.R checkmate/R/makeTest.R checkmate/R/checkLogical.R checkmate/R/asInteger.R checkmate/R/makeAssertion.R checkmate/R/checkComplex.R checkmate/R/assert.R checkmate/R/vname.R checkmate/R/checkFileExists.R checkmate/R/isIntegerish.R checkmate/R/checkCount.R checkmate/R/checkAtomic.R checkmate/R/checkScalar.R checkmate/R/wfwl.R checkmate/R/checkList.R checkmate/R/checkSubset.R checkmate/R/qassert.R checkmate/R/checkDataFrame.R checkmate/R/checkPathForOutput.R checkmate/R/checkNull.R checkmate/R/checkFunction.R checkmate/R/checkVector.R checkmate/R/qassertr.R checkmate/R/checkNamed.R checkmate/R/checkFlag.R checkmate/R/checkDirectoryExists.R checkmate/R/checkDate.R checkmate/R/checkString.R checkmate/R/checkClass.R checkmate/R/helper.R checkmate/R/checkNames.R checkmate/R/allMissing.R checkmate/R/checkTibble.R checkmate/R/checkChoice.R checkmate/R/checkMatrix.R checkmate/R/checkOS.R checkmate/R/checkInteger.R checkmate/R/checkNumeric.R checkmate/R/checkFactor.R checkmate/R/checkEnvironment.R checkmate/R/anyNaN.R checkmate/R/checkScalarNA.R checkmate/R/checkArray.R checkmate/R/zzz.R checkmate/R/anyMissing.R checkmate/R/AssertCollection.R checkmate/R/anyInfinite.R
checkmate/vignettes
checkmate/vignettes/checkmate.Rmd
checkmate/README.md
checkmate/MD5
checkmate/build
checkmate/build/vignette.rds
checkmate/DESCRIPTION
checkmate/man
checkmate/man/checkIntegerish.Rd checkmate/man/vname.Rd checkmate/man/checkCharacter.Rd checkmate/man/checkNames.Rd checkmate/man/qassert.Rd checkmate/man/checkPathForOutput.Rd checkmate/man/makeAssertion.Rd checkmate/man/checkArray.Rd checkmate/man/anyMissing.Rd checkmate/man/checkString.Rd checkmate/man/assert.Rd checkmate/man/checkAtomic.Rd checkmate/man/checkChoice.Rd checkmate/man/checkDate.Rd checkmate/man/checkNumeric.Rd checkmate/man/anyNaN.Rd checkmate/man/checkNull.Rd checkmate/man/checkDataFrame.Rd checkmate/man/matchArg.Rd checkmate/man/checkDataTable.Rd checkmate/man/checkScalarNA.Rd checkmate/man/checkSetEqual.Rd checkmate/man/checkClass.Rd checkmate/man/checkCount.Rd checkmate/man/checkComplex.Rd checkmate/man/checkInt.Rd checkmate/man/qassertr.Rd checkmate/man/checkVector.Rd checkmate/man/checkEnvironment.Rd checkmate/man/makeTest.Rd checkmate/man/checkSubset.Rd checkmate/man/checkOS.Rd checkmate/man/checkmate-package.Rd checkmate/man/checkScalar.Rd checkmate/man/checkNumber.Rd checkmate/man/checkFlag.Rd checkmate/man/checkInteger.Rd checkmate/man/checkList.Rd checkmate/man/coalesce.Rd checkmate/man/checkMatrix.Rd checkmate/man/makeExpectation.Rd checkmate/man/checkDirectoryExists.Rd checkmate/man/anyInfinite.Rd checkmate/man/checkAtomicVector.Rd checkmate/man/checkLogical.Rd checkmate/man/checkFunction.Rd checkmate/man/AssertCollection.Rd checkmate/man/checkTibble.Rd checkmate/man/wf.Rd checkmate/man/checkAccess.Rd checkmate/man/asInteger.Rd checkmate/man/checkFileExists.Rd checkmate/man/checkFactor.Rd checkmate/man/checkNamed.Rd
checkmate/LICENSE

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.