powered by
Match argument to allowed values
match_arg(arg, values, arg_name = as.character(substitute(arg)))