Fast and Versatile Argument Checks
Check if an object contains infinite values
Check if an object contains missing values
Check if an object contains NaN values
Convert an argument to an integer
Combine multiple checks into one assertion
Collect multiple assertions
Check file system access rights
Check if an argument is an array
Check that an argument is an atomic vector
Check that an argument is an atomic vector
Check if an argument is a vector of type character
Check if an object is an element of a given set
Check the class membership of an argument
Check if an argument is a vector of type complex
Check if an argument is a count
Check if an argument is a data frame
Check if an argument is a data table
Check that an argument is a Date
Check for existence and access rights of directories
Check if an argument is disjunct from a given set
Check that an argument is a vector of type double
Check if an argument is an environment
Check if an argument is a factor
Check if an argument is FALSE
Check existence and access rights of files
Check if an argument is a flag
Check if an argument is a formula
Check if an argument is a function
Check if an argument is a single integerish value
Check if an argument is vector of type integer
Check if an object is an integerish vector
Check if an argument is a list
Check if an argument is a vector of type logical
checkmate: Fast and Versatile Argument Checks
Check if an argument is a matrix
Check the class membership of an argument
Check if an argument is named
Check names to comply to specific rules
Check if an argument is NULL
Check if an argument is a single numeric value
Check that an argument is a vector of type numeric
Check the operating system
Check if a path is suited for creating an output file
Check if the arguments are permutations of each other.
Check that an argument is a date/time object in POSIXct format
Check if an argument is an R6 class
Check if an argument is a raw vector
Check if an argument is a single atomic value
Check if an argument is a single missing value
Check if an argument is equal to a given set
Check if an argument is a string
Check if an argument is a subset of a given set
Check if an argument is a tibble
Check if an argument is TRUE
Check if an argument is a vector
Coalesce operator
Turn a Check into an Assertion
Turn a Check into an Expectation
Turn a Check into a Test
Partial Argument Matching
Quick argument checks on (builtin) R types
Quick recursive arguments checks on lists and data frames
Select Backend for Unit Tests
Lookup a variable name
Get the index of the first/last TRUE
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.
Useful links