Set Options if Unset

Share:

Description

This function will set an option if it isn't already present within the global options returned by the options() function

Usage

1

Arguments

...

any options can be defined, using name = value, if they are not already defined.

Options can also be passed by giving a single unnamed argument which is a named list.

force

Force the Option to Be Set

Examples

1
2
3
options.ifunset(width=10)            #IGNORED, ALREADY EXISTS
options.ifunset(width=10,force=TRUE) #FORCED UPDATE TO OPTION
options.ifunset(myoption=TRUE)       #New Option is Created

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.