initializeOptionContainer: Initialize Option Container (generic)

Description Usage Arguments Author(s) References See Also Examples

Description

Convenience function to initialize the option container that is then stored in option "reactr" and can be retrieved by getOption("reactr").

Usage

1

Arguments

id

Signature argument. Object containing R option ID information. Typically, this corresponds to the name of the package/package project.

overwrite

logical. TRUE: overwrite existing container; FALSE: create only if no container exists yet.

...

Further arguments to be passed to subsequent functions/methods.

Author(s)

Janko Thyson janko.thyson@rappster.de

References

http://github.com/Rappster/reactr

See Also

initializeOptionContainer-NULL-method, getRegistry

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

options("reactr" = NULL)
getOption("reactr")
container <- initializeOptionContainer("reactr")
identical(getOption("reactr")$options, container$options)
identical(getOption("reactr")$.registry, container$.registry)  


## End(Not run)

rappster/reactr documentation built on May 26, 2019, 11:56 p.m.