Man pages for assertions
Simple Assertions for Beautiful and Customisable Error Messages

assertAssert that conditions are met
assert_all_directories_existAssert all files are directories
assert_all_files_existAssert that all files exist
assert_all_files_have_extensionAssert file extensions
assert_all_greater_thanAssert input is greater than a specified minimum value
assert_all_greater_than_or_equal_toAssert input is greater than or equal to a specified minimum...
assert_all_less_thanAssert input is less than a specified maximum value
assert_all_less_than_or_equal_toAssert input is less than or equal to a specified maximum...
assert_characterAssert input is a character vector
assert_character_vectorAssert input is a character vector
assert_character_vector_or_glueAssert input is a character vector / glue vector
assert_classAssert object belongs to class
assert_connectionAssert input is a database connection
assert_createCreate an assertion function
assert_create_chainCreate Chains of Assertions
assert_dataframeAssert input is a data frame
assert_directory_does_not_existAssert a directory does not exist
assert_directory_existsAssert are directory exists
assert_equalAssert that the input objects are equal
assert_excludesAssert object does not include any illegal values
assert_factor_vectorAssert input is a factor
assert_file_does_not_existAssert a file does not exist
assert_file_existsAssert a file exists
assert_file_has_extensionAssert file extensions
assert_flagAssert input is a scalar logical
assert_functionAssert input is a function
assert_function_expects_n_argumentsAssert function expects n arguments
assert_greater_thanAssert input is greater than some minimum value
assert_greater_than_or_equal_toAssert input is greater than or equal to a specified minimum...
assert_identicalAssert that the input object is identical to a specified...
assert_includesAssert object includes required
assert_intAssert input is an integer
assertion_namesList assertion names
assertion_testsCount tests per Assertion
assert_lengthAssert Length
assert_length_greater_thanAssert Length Greater Than
assert_length_greater_than_or_equal_toAssert Length Greater Than or Equal To
assert_length_less_thanAssert Length Less Than
assert_length_less_than_or_equal_toAssert Length Less Than or Equal To
assert_less_thanAssert input is less than some maximum value
assert_less_than_or_equal_toAssert input is less than or equal to a specified maximum...
assert_listAssert input is a list
assert_logicalAssert input is logical
assert_logical_vectorAssert input is an atomic logical vector
assert_matrixAssert input is a matrix
assert_names_includeAssert that the input object includes a specified name
assert_no_duplicatesAssert that the input vector has no duplicates
assert_no_missingAssert that the input vector has no missing values
assert_non_empty_stringAssert input is a non empty character string
assert_non_nullAssert that the input is not NULL
assert_nullAssert that the input is NULL
assert_numberAssert input is a number
assert_numericAssert input is numeric
assert_numeric_vectorAssert input is a numeric vector
assert_one_ofCheck if a scalar value is one of the acceptable values
assert_reactiveAssert that x is reactive
assert_scalarAssert input is a scalar
assert_set_equalCheck if two sets are identical
assert_stringAssert input is a character string
assert_subsetCheck if a vector is a subset of another
assert_vectorAssert input is a vector
assert_whole_numberAssert that the input object is a whole number
check_all_assertions_are_tested_enoughCheck assertions are tested enough
common_roxygen_paramsCommon Parameter Descriptions
excludes_advancedCheck if an object does not contain prohibited elements
format_as_bulletsPreprocess character vectors for cli::cli_abort()
format_inlinePreprocess character vectors for cli package functions
has_all_namesCheck if a named object has all specified names
has_classCheck object is some class
has_duplicatesCheck if a vector has duplicates
has_extensionHas Extension
has_missing_valuesCheck if a vector has missing values
has_no_duplicatesCheck if a vector has no duplicates
has_no_missing_valuesCheck if a vector has no missing values
includesCheck if All Values in Required are in x
includes_advancedCheck if an object contains required elements
is_character_vectorCheck if an object is a character vector
is_character_vector_or_glueCheck if an object is a character vector
is_equalCheck equality of two objects
is_flagCheck if a value is a logical flag
is_flag_advancedCheck if x is a flag
is_greater_thanCheck if a numeric vector is greater than a specified minimum...
is_greater_than_or_equal_toCheck if a numeric vector is greater than or equal to a...
is_identicalCheck if two objects are identical
is_less_thanCheck if a numeric vector is less than a specified maximum...
is_less_than_or_equal_toCheck if a numeric vector is less than or equal to a...
is_listCheck if a value is a list
is_logical_vectorCheck if an object is a logical vector
is_non_empty_string_advancedCheck if x is a nonempty string
is_numberCheck if an object is a single number
is_number_advancedCheck if x is a number
is_numeric_vectorCheck if an object is a numeric vector
is_reactiveCheck if a value is reactive
is_same_typeCheck equality of type
is_stringCheck if an object is a single string
is_string_advancedCheck if x is a string
is_subsetCheck if one set is a subset of another
is_supersetCheck if one set is a superset of another
is_vectorCheck if an object is a vector This function checks if an...
setopts_are_equalCompare Sets for Equality
setopts_common_elementsFind Common Elements
setopts_count_exlusive_to_firstCount of Elements Exclusive to First Set
setopts_exlusive_to_firstElements Exclusive to First Set
util_count_duplicatesCount the number of duplicated values in a vector
util_count_missingCount the number of missing values in a vector
util_get_duplicated_valuesGet the duplicated values in a vector
assertions documentation built on April 3, 2025, 5:52 p.m.