options.ifunset: Set Options if Unset

Description Usage Arguments Examples

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


Search within the optifunset package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.