checkmate v1.7.2

0

Monthly downloads

0th

Percentile

by Michel Lang

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.

Functions in checkmate

Name Description
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
No Results!

Last month downloads

Details

Type Package
URL https://github.com/mllg/checkmate
BugReports https://github.com/mllg/checkmate/issues
NeedsCompilation yes
ByteCompile yes
Encoding UTF-8
License BSD_3_clause + file LICENSE
VignetteBuilder knitr
RoxygenNote 5.0.1
Collate 'AssertCollection.r' 'allMissing.r' 'anyInfinite.r' 'anyMissing.r' 'anyNaN.r' 'asInteger.r' 'assert.r' 'helper.r' 'makeExpectation.r' 'makeTest.r' 'makeAssertion.r' 'checkAccess.r' 'checkArray.r' 'checkAtomic.r' 'checkAtomicVector.r' 'checkCharacter.r' 'checkChoice.r' 'checkClass.r' 'checkComplex.r' 'checkCount.r' 'checkDataFrame.r' 'checkDataTable.r' 'checkDirectory.r' 'checkEnvironment.r' 'checkFactor.r' 'checkFile.r' 'checkFlag.r' 'checkFunction.r' 'checkInt.r' 'checkInteger.r' 'checkIntegerish.r' 'checkList.r' 'checkLogical.r' 'checkMatrix.r' 'checkNamed.r' 'checkNames.r' 'checkNull.r' 'checkNumber.r' 'checkNumeric.r' 'checkOS.r' 'checkPathForOutput.r' 'checkScalar.r' 'checkScalarNA.r' 'checkSetEqual.r' 'checkString.r' 'checkSubset.r' 'checkVector.r' 'coalesce.r' 'isIntegerish.r' 'qassert.r' 'qassertr.r' 'wfwl.r' 'zzz.r'
Packaged 2016-02-25 11:17:04 UTC; lang
Repository CRAN
Date/Publication 2016-02-25 18:03:30

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/checkmate)](http://www.rdocumentation.org/packages/checkmate)