Check if an error condition is satisfied
Usage
check_condition(condition, message, fatal = TRUE)
Arguments
- condition
logical test which if TRUE will cause the function to
return an error message
- message
error message to be displayed if condition is met.
- fatal
if TRUE, error message is fatal, i.e., it will abort the
parent function which called check_condition.