Assert object length is less than or equal to a threshold
assert_length_less_than_or_equal_to(
x,
length,
msg = NULL,
call = rlang::caller_env(),
arg_name = NULL
)invisible(TRUE)
object to check length of
expected length (number)
custom error message
(logical) whether to preserve call in error message
(character) name of argument being tested