Assert that a vector is either of a vector of integers or a vector of characters
Source:R/checkers.R
assert_int_or_char.Rd
This is for unique identifiers of groupings, which we will allow to either be character or integers.
Usage
assert_int_or_char(x, arg = "x", call = rlang::caller_env())
Arguments
- x
Object with type checking
- arg
Name of the argument supplying the object
- call
Calling environment to be passed to
cli::cli_abort()