Get a single GlobalOption object

# S3 method for GlobalOptionsFun
[(x, nm)

Arguments

x

the option object returned by set_opt or setGlobalOptions.

nm

a single name of the option.

Details

This function is only used internally.

Author

Zuguang Gu <z.gu@dkfz.de>

Examples

opt = set_opt(a = 1, b = "b") opt["a"]
#> Field Value #> name a #> default_value 1 #> current_value 1 #> length no limit #> class no limit #> validate a user-defined function #> failed_msg Your option is invalid. #> filter a user-defined function #> read.only FALSE #> private FALSE #> visible TRUE #> description "" #> __generated_namespace__ R_GlobalEnv
opt["b"]
#> Field Value #> name b #> default_value b #> current_value b #> length no limit #> class no limit #> validate a user-defined function #> failed_msg Your option is invalid. #> filter a user-defined function #> read.only FALSE #> private FALSE #> visible TRUE #> description "" #> __generated_namespace__ R_GlobalEnv