getOption.Options

0th

Percentile

Gets an option

Gets an option in the options tree structure or return a default value.

Keywords
methods, internal, programming
Usage
# S3 method for Options
getOption(this, pathname=NULL, defaultValue=NULL, ...)
Arguments
pathname

A single or a vector of character strings specifying the paths to the options to be queried. By default the complete options structure is returned.

defaultValue

The default value to be returned, if option is missing. If multiple options are queried at the same times, multiple default values may be specified as a vector or a list.

...

Not used.

Value

If a single option is queried, a single value is returned. If a vector of options are queried, a list of values are returned. For non-existing options, the default value is returned.

See Also

*hasOption(). *setOption(). For more information see Options.

Aliases
  • getOption.Options
  • Options.getOption
  • getOption,Options-method
Documentation reproduced from package R.utils, version 2.8.0, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.