Gets an R Option or an Environment Variable
getOption2(name, default = NULL)
(character string) The name of the R option.
(a single object) The value to be returned if neither
the R option nor the environment variable is set. If the environment
variable is set, its value is coerced to the same type as default
.
(character string) The name of the environment variable.
If not set, or NULL, then the name is automatically constructed from
the upper-case version of argument name
with periods (.
) substituted
by underscores (_
) and prefixed with R_
, e.g. with "abc.debug"
becomes R_ABC_DEBUG
.
Returns an object.