Arguments
arg.names
character
vector of acceptable argument names. This function scans the provided
arguments and performs a case insensitive match.
full.name
One-element character
vector giving the argument's full name or description. This is
used in a log message in case of an error.
arg.type
Variable type of the argument. Must be one of "character"
, "logical"
,
"integer"
, "double"
, "numeric"
or "real"
. The last three types are
all synonyms.
accepted.values
Vector of accepted values for the argument. This must be of the type given in arg.type
.
Set this to NULL
if there are no restrictions on the argument values.
default
Default value for the argument in case it is not specified. Setting this to NULL
makes
the argument required, that is, an error is generated if the argument is not specified. Set
this to NA
if is not a required argument and it shouldn't default to a specific value.
Otherwise, if accepted.values
is provided, this must be one of its elements.
arg.list
Vector of arguments provided at the execution of the script. The arguments should be provided
as name=value pairs.