set_option: set_option

Description Usage Arguments Value See Also Examples

View source: R/set_option.R

Description

An alias for options

Usage

1

Arguments

...

named arguments passed to options -or- a single named list.

Base has a getOption function, but does not have the complimentary setOption function. The options function is used instead. set_option aliases for options

Value

If an argument is provided, behavior is as options: 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).

If no argument is provided the NULL is returned invisibly. This is different from options.

See Also

options

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
set_option( foo = list(bar='baz') )

  set_option()  # NULL, Non-op

  # NOT IMPLEMENTED YET:
  ## Not run: 
    set_option( foo$bar := 'baz' )
    set_option( foo$bar ~ 'baz' )
  
## End(Not run)

decisionpatterns/options documentation built on May 12, 2017, 9:56 p.m.