Skip to contents

Helper functions

Usage

reset_opt(opt)

add_opt(opt, ...)

Arguments

opt

The option object returned by set_opt() or setGlobalOptions().

...

New options.

Details

reset_opt() is identical to opt(RESET = TRUE).

add_opt() is identical to opt(..., ADD = TRUE).

Examples

opt = set_opt(a = 1, b = 2)
opt$a = 100; opt$b = 200
opt
#>  Option Value
#>  ------:-------
#>  a      100  
#>  b      200  
reset_opt(opt)
opt
#>  Option Value
#>  ------:-------
#>  a      1    
#>  b      2    
opt = set_opt(a = 1)
add_opt(opt, b = 2)
opt
#>  Option Value
#>  ------:-------
#>  a      1    
#>  b      2