Learn R Programming

faux (version 1.2.1)

faux_options: Set/get global faux options

Description

Global faux options are used, for example, to set the default separator for cell names.

Usage

faux_options(...)

Value

a list of options, values of an option, or nothing

Arguments

...

One of four: (1) nothing, then returns all options as a list; (2) a name of an option element, then returns its value; (3) a name-value pair which sets the corresponding option to the new value (and returns nothing), (4) a list with option-value pairs which sets all the corresponding arguments.

Examples

Run this code

faux_options() # see all options

faux_options("sep") # see value of faux.sep

if (FALSE) {
# changes cell separator (e.g., A1.B2)
faux_options(sep = ".")

# changes cell separator back to default (e.g., A1_B2)
faux_options(sep = "_")
}

Run the code above in your browser using DataLab