Check an argument with checkmate
Usage
check_arg_is_supertbl(
x,
req_cols = c("redcap_data", "redcap_metadata"),
arg = caller_arg(x),
call = caller_env()
)
check_arg_is_env(x, ..., arg = caller_arg(x), call = caller_env())
check_arg_is_character(x, ..., arg = caller_arg(x), call = caller_env())
check_arg_is_logical(x, ..., arg = caller_arg(x), call = caller_env())
check_arg_choices(x, ..., arg = caller_arg(x), call = caller_env())
check_arg_is_valid_token(x, arg = caller_arg(x), call = caller_env())
check_arg_is_valid_extension(
x,
valid_extensions,
arg = caller_arg(x),
call = caller_env()
)
Arguments
- x
An object to check
- req_cols
required fields for
check_arg_is_supertbl()
- arg
The name of the argument to include in an error message. Captured by
rlang::caller_arg()
by default- call
the calling environment to use in the error message
- ...
additional arguments passed on to checkmate