Validates that an option parameter is one of the allowed values.

validate_option(option, ..., .fun_name = NULL)

Arguments

option

option to check

...

valid options

.fun_name

A string containing the name of the calling to use as a prefix in the warning. Default is NULL

Value

TRUE if passes checks, FALSE otherwise. Generates warnings.