.validate_scalar: Ensure the argument is a single logical value
Description
Ensure the argument is a single logical value
Usage
.validate_scalar(arg_value, arg_name, arg_type = "logical")
Value
The value (if it is length-1).
Arguments
- arg_value
The value of the argument.
- arg_name
The name of the argument for error messages.
- arg_type
The expected class for error messages.