Generate an Error Message
.error_message(
parameter,
parameter_name,
valid_values,
special_message,
level = 2
)The argument to test.
The argument's name. Eventually this should be automatically handled through rlang or something, in theory.
(optional) Expected values of the parameter.
A message tailored to the type of error.
How deep the check is relative to the original function. Default = 2.