Description Core convenience functions Underlying core functions Author(s) References
The package provides an extendable interface to conveniently
create customized project/package options. Options can be specified and
retrieved based on path-like names/identifiers (e.g.
output/type/pdf = TRUE
will be translated into the following nested
environment structure: output$type$pdf
with the value being TRUE
).
Also, it allows to specify reactive options, i.e. options that are dynamically linked to other options and thus automatically stay synced.
initializeOptionContainer
:
Initialize an option container that serves as a central point of reference for setting and retrieving project options and similar information.
setPackageOption
(getPackageOption
):
Set (retrieve) actual package options (from) a specific environment inside an option container.
setMetaValue
(getMetaValue
):
Set (retrieve) meta information (from) a specific environment inside an option container.
setRegistryValue
(getRegistryValue
):
Set (retrieve) registry information (from) a specific environment inside an option container.
Removal functions:
Remove components from option container.
rmProjectOption, rmMetaValue,
rmRegistryValue
setAnywhereOption
(getAnywhereOption
):
Set (retrieve) options (from) anywhere inside an option container. This function is called by most of the convenience functions listed above.
Initialization functions:
Actual component initialization can be controlled by definining methods for any of the following functions:
initializeOptionContainer,
initializeProjectOptions,
initializeMeta,
initializeRegistry
Janko Thyson janko.thyson@gmail.com
http://github.com/Rappster/optionr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.