getOption {base} R Documentation

Options Settings

Description


Allow the user to set and examine a variety of global options which affect the way in
which R computes and displays its results.

Usage

getOption(x,
    default = NULL);

Arguments

x

a character string holding an option name. [as string]

default

if the specified option is not set in the options list, this value is returned. This facilitates retrieving an option and checking whether it is set and setting it separately if not. [as string]

envir

[as Environment]

Details

Invoking options() with no arguments returns a list with the current values of the options. Note that not all options listed below are set initially. To access the value of a single option, one should use, e.g., getOption("width") rather than options("width") which is a list of length one.

Authors

SMRUCC genomics Institute

Value

For getOption, the current value set for option x, or default (which defaults to NULL) if the option is unset.

clr value class

Examples


[Package base version 2.33.856.6961 Index]