GlobalOptions (version 0.1.1)

[[.GlobalOptionsFun: Get option value by subset operator

Description

Get option value by subset operator

Usage

# S3 method for GlobalOptionsFun
[[(x, nm)

Arguments

x

the option object returned by set_opt or setGlobalOptions.

nm

a single option name.

Details

opt[["a"]] is same as opt("a") or opt$a.

Examples

Run this code
# NOT RUN {
opt = set_opt(a = 1)
opt[["a"]]
# }

Run the code above in your browser using DataLab