Skip to contents

All functions

assert_all_finite()
Assert that all values are finite
assert_all_whole_numbers()
Assert that values are whole numbers
assert_any_of()
Assert that an object satisfies at least one of several checks
assert_at_least_one()
Assert that at least one of several arguments is supplied
assert_between()
Assert that values fall within an interval
assert_class()
Assert that an object inherits from a class
assert_column_names()
Assert that a data frame has exactly these columns
assert_column_types()
Assert that a set of columns are all of one type
assert_count()
Assert that values are counts
assert_data_frame()
Assert that an object is a data frame
assert_data_table()
Assert that an object is a data table
assert_date()
Assert that an object is a date
assert_datetime()
Assert that an object is a date-time
assert_disjoint()
Assert that two objects share no values
assert_exactly_one()
Assert that exactly one of several arguments is supplied
assert_false()
Assert that a condition is false
assert_has_columns()
Assert that a data frame contains required columns
assert_has_names()
Assert that an object contains required names
assert_length()
Assert that an object has an exact length
assert_length_between()
Assert that an object's length falls within an inclusive range
assert_list_of()
Assert that every element of a list is of a given type
assert_matches_pattern()
Assert that strings match a pattern
assert_maximum_characters()
Assert that strings have at most a maximum number of characters
assert_minimum_characters()
Assert that strings have at least a minimum number of characters
assert_minimum_length() assert_maximum_length()
Assert that an object's length falls within bounds
assert_mutually_exclusive()
Assert that at most one of several arguments is supplied
assert_named()
Assert that an object has names
assert_no_duplicates()
Assert that an object contains no duplicate values
assert_no_missing_in_columns()
Assert that columns of a data frame contain no missing values
assert_no_missing_values()
Assert that an object contains no missing values
assert_nonempty_strings()
Assert that character values are not empty strings
assert_not_empty()
Assert that an object is not empty
assert_not_empty_data_frame()
Assert that a data frame is not empty
assert_not_null()
Assert that an object is not NULL
assert_null()
Assert that an object is NULL
assert_number_of_columns()
Assert that a data frame has an exact number of columns
assert_number_of_rows()
Assert that a data frame has an exact number of rows
assert_range()
Assert that two bounds form a range
assert_same_length()
Assert that objects share the same length
assert_scalar_count()
Assert that an object is a single whole number used as a count
assert_scalar_date()
Assert that an object is a single date
assert_scalar_datetime()
Assert that an object is a single date-time
assert_scalar_non_negative()
Assert that an object is a single non-negative number
assert_scalar_positive()
Assert that an object is a single positive number
assert_scalar_positive_integer()
Assert that an object is a single positive whole number
assert_set_equal()
Assert that two objects hold the same set of values
assert_sorted()
Assert that values are sorted
assert_true()
Assert that a condition is true
assert_unique_names()
Assert that an object's names are unique
assert_unique_rows()
Assert that a data frame has no duplicate rows
assert_value_in_set()
Assert that a single value belongs to a set
assert_values_in_set()
Assert that all values belong to a set
assert_all_greater_than() assert_all_greater_than_or_equal() assert_all_less_than() assert_all_less_than_or_equal()
Assert element-wise numeric comparisons
assert_scalar_character() assert_scalar_numeric() assert_scalar_integer() assert_scalar_double() assert_scalar_logical() assert_scalar_complex() assert_scalar_factor() assert_scalar_raw()
Assert that an object is a single value of a given type
assert_all_positive() assert_all_non_negative() assert_all_negative() assert_all_non_positive()
Assert the sign of all values
assert_character() assert_numeric() assert_integer() assert_double() assert_logical() assert_complex() assert_list() assert_factor() assert_function() assert_raw()
Assert that an object is a vector of a given type