Learn R Programming

GlobalOptions (version 0.1.2)

$<-.GlobalOptionsFun: Set option value by dollar symbol

Description

Set option value by dollar symbol

Usage

# S3 method for GlobalOptionsFun
$(x, nm) <- value

Arguments

x

the object returned by set_opt or setGlobalOptions.

nm

a single option name.

value

the value which is assigned to the option.

Details

opt$a = 1 is same as opt("a" = 1).

Note you cannot reconfigurate the option by assigning a configuration list.

Examples

Run this code
# NOT RUN {
opt = set_opt(a = 1)
opt$a = 2
opt$a
# }

Run the code above in your browser using DataLab