[ RDocumentation ](/)

Moon  [ ](https://github.com/datacamp/rdocumentation-2.0) [ Learn R
](https://www.datacamp.com/learn/r)

Search all packages and functions

[ base  (version  3.6.2  ) ](/packages/base/versions/3.6.2)

#  options: 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

    
    
    options(…)
    
    getOption(x, default = NULL)
    
    .Options

##  Arguments

…

any options can be defined, using ` name = value ` . However, only the ones
below are used in base  R  .

Options can also be passed by giving a single unnamed argument which is a
named list.

x

a character string holding an option name.

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.

##  Value

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

For ` options() ` , a list of all set options sorted by name. For `
options(name) ` , a list of length one containing the set value, or ` NULL `
if it is unset. For uses setting one or more options, a list with the previous
values of the options changed (returned invisibly).

##  Options used in base <span style="R">R</span>

` add.smooth ` :

    

typically logical, defaulting to ` TRUE ` . Could also be set to an integer
for specifying how many (simulated) smooths should be added. This is currently
only used by ` [ plot.lm ](/link/plot.lm?package=base&version=3.6.2) ` .

` askYesNo ` :

    

a function (typically set by a front-end) to ask the user binary response
functions in a consistent way, or a vector of strings used by ` [ askYesNo
](/link/askYesNo?package=base&version=3.6.2) ` to use as default responses for
such questions.

` browserNLdisabled ` :

    

logical: whether newline is disabled as a synonym for ` "n" ` in the browser.

` checkPackageLicense ` :

    

logical, not set by default. If true, ` [ loadNamespace
](/link/loadNamespace?package=base&version=3.6.2) ` asks a user to accept any
non-standard license at first load of the package.

` check.bounds ` :

    

logical, defaulting to ` FALSE ` . If true, a [ warning
](/link/warning?package=base&version=3.6.2) is produced whenever a vector
(atomic or ` [ list ](/link/list?package=base&version=3.6.2) ` ) is extended,
by something like ` x <- 1:3; x[5] <- 6 ` .

` CBoundsCheck ` :

    

logical, controlling whether ` [ .C ](/link/.C?package=base&version=3.6.2) `
and ` [ .Fortran ](/link/.Fortran?package=base&version=3.6.2) ` make copies to
check for array over-runs on the atomic vector arguments.

Initially set from value of the environment variable ` R_C_BOUNDS_CHECK ` (set
to ` yes ` to enable).

` conflicts.policy ` :

    

character string or list controlling handling of conflicts found in calls to `
[ library ](/link/library?package=base&version=3.6.2) ` or ` [ require
](/link/require?package=base&version=3.6.2) ` . See ` [ library
](/link/library?package=base&version=3.6.2) ` for details.

` continue ` :

    

a non-empty string setting the prompt used for lines which continue over one
line.

%% default is set in ../../profile/Common.R :  ` defaultPackages ` :

    

the packages that are attached by default when  R  starts up. Initially set
from value of the environment variable ` R_DEFAULT_PACKAGES ` , or if that is
unset to ` c("datasets", "utils", "grDevices", "graphics", "stats", "methods")
` . (Set ` R_DEFAULT_PACKAGES ` to ` NULL ` or a comma-separated list of
package names.) It will not work to set this in a ` .Rprofile ` file, as its
value is consulted before that file is read.

` deparse.cutoff ` :

    

integer value controlling the printing of language constructs which are ` [
deparse ](/link/deparse?package=base&version=3.6.2) ` d. Default ` 60 ` .

` deparse.max.l