Get option value by dollar symbol

# S3 method for GlobalOptionsFun
$(x, nm)

Arguments

x

the object returned by set_opt or setGlobalOptions.

nm

a single option name.

Details

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

Author

Zuguang Gu <z.gu@dkfz.de>

Examples

opt = set_opt(a = 1) opt$a
#> [1] 1