Skip to contents

This helper function checks the inputs for the ao function.

Usage

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.

Value

Either throws an error, or invisible TRUE.