Check an argument with checkmate
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()
)
TRUE
if x
passes the checkmate check. An error otherwise with the name of
the checkmate function as a class
An object to check
required fields for check_arg_is_supertbl()
The name of the argument to include in an error message. Captured
by rlang::caller_arg()
by default
the calling environment to use in the error message
additional arguments passed on to checkmate