Input checks
This helper function checks the inputs for the ao
function.
ao_input_check( argument_name, check_result, error_message = check_result, prefix = "Input {.var {argument_name}} is bad:" )
argument_name
: (character(1)
)
The name of the argument that is checked.
check_result
: (logical(1)
)
TRUE
if the check was successful.
error_message
: (character(1)
)
An error message to be printed.
prefix
: (character(1)
)
A prefix before the error message.
Either throws an error, or invisible TRUE
.
Useful links