Check Object Length/Dimensions
assert_length(x, expected, empty = FALSE)assert_lengths(x, expected)
assert_empty(x)
assert_filled(x)
assert_dimensions(x, expected)
Throws an error, if any, and returns x invisibly otherwise.
An object to be checked.
An appropriate expected value.
A logical scalar: should empty objects be ignored?
N. Frerebeau
Other validation methods:
assert_constant(),
assert_data,
assert_lower(),
assert_names(),
assert_numeric,
assert_package(),
assert_square(),
assert_type(),
validate()