Checks the provided x is not "empty" via rlang::is_empty().
Usage
check_not_empty(x, arg = rlang::caller_arg(x), call = rlang::caller_env())Arguments
- x
The object to check.
- arg
An argument name as a string. This argument will be mentioned in error messages as the input that is at the origin of a problem.
- call
The execution environment of a currently running function, e.g.
caller_env(). The function will be mentioned in error messages as the source of the error. See thecallargument ofabort()for more information.