A set of predicates and assertions for checking the properties of variables, such as length, names and attributes. This is mainly for use by other package developers who want to include run-time testing features in their own packages. End-users will usually want to use assertive directly.
|Author||Richard Cotton [aut, cre]|
|Date of publication||2016-12-30 10:12:22|
|Maintainer||Richard Cotton <firstname.lastname@example.org>|
|License||GPL (>= 3)|
are_same_length: Are the inputs the same length/dimension?
DIM: Get the dimensions of an object
has_any_attributes: Does the input have any attributes?
has_attributes: Does the input have the specified attributes?
has_cols: Does the input have rows/columns?
has_dims: Does the input have dimensions?
has_duplicates: Does the input have duplicates?
has_names: Does the input have names?
has_slot: Does the S4 input have a slot?
is_atomic: Is the input atomic/recursive/vector?
is_empty: Is the input empty/scalar?
is_monotonic_increasing: Is the vector monotonically increasing or decreasing?
is_null: Is the input (not) null?
is_unsorted: Is the input unsorted?
n_elements: Get the number of elements