GlobalOptions

Setting global options.

Basic

Example

library(GlobalOptions)
opt = set_opt(
    "a" = 1,
    "b" = "text"
)

then global options can be get or set via the following ways.

opt()
opt("a")
opt$a
opt[["a"]]
opt(c("a", "b"))
opt("a", "b")
opt("a" = 2)
opt$a = 2
opt("a" = 2, "b" = "new_text")