ao_input_check function

Input checks

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:" )

Arguments

  • 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.

Returns

Either throws an error, or invisible TRUE.