
Match an argument to a TRUE
or FALSE
vector but skip NA
Source: R/utilities.R
arg_match0_true_or_false.Rd
This is equivalent to arg_match
but an
integer vector is compared and skip NA
.
Usage
arg_match0_true_or_false(
arg,
allow_na = TRUE,
arg_nm = rlang::caller_arg(arg),
error_call = rlang::caller_env()
)
Arguments
- arg
A symbol referring to an argument accepting strings.
- allow_na
Input boolean to determine if
NA
orNaN
is allowed. Default:TRUE
- arg_nm
Same as
error_arg
.- error_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 thecall
argument ofabort()
for more information.