Assert that there is only a single value in a particular column
Source:R/checkers.R
assert_single_value.Rd
Assert that there is only a single value in a particular column
Usage
assert_single_value(x, arg = "x", call = rlang::caller_env(), add_err_msg = "")
Arguments
- x
the vector to check
- arg
the name of the vector to check
- call
Calling environment to be passed to
cli::cli_abort()
for traceback.- add_err_msg
string containing an additional error message, default is the empty string (
""
)