powered by
Set option value by subset operator
# S3 method for GlobalOptionsFun [[(x, nm) <- value
the option object returned by set_opt or setGlobalOptions.
set_opt
setGlobalOptions
a single option name.
the value which is assigned to the option.
opt[["a"]] = 1 is same as opt("a" = 1) or opt$a = 1.
opt[["a"]] = 1
opt("a" = 1)
opt$a = 1
# NOT RUN { opt = set_opt(a = 1) opt[["a"]] = 2 opt$a # }
Run the code above in your browser using DataLab