initializeNamespaceRappOptions()
ensureNamespaceRappOptions()
--> mergeNamespaceRappOptions()
.
This better reflects the purpose of merging initial namespace options and the ones specified in the option file /options/options_ns.r
.renameRuntimeOptionFile()
--> renameRappOptionFile()
.
This is more consistent with the overall naming conventions used.setRappOption()
.
Numerical option names can handled (e.g. 20140101
). getRappOption()
.
Numerical option names can now be handled (e.g. 20140101
)path_app
(initializeNamespaceRappOptions()
) and removed the respective system option (initializeRappOptions()
)opts
to ensureRapptime()
: allows to pass read options in order to transfer some runtime options to internal .rte
options.
Not fully elaborated yet.global_dir
in initializeRappOptions()
path_app
in initializeRappOptions()
path_app
to the runtime options (/options/options_runtime.r
)/rapp/apps/
: options are now located below /rapp/apps/<app-name>/options/
in order to be consitent with respect to the structure of the /rapp
directory in the package project's root directory.ensureRappComponents()
. ensureProjectComponents()
.onAttach()
and onLoad()
tidySource()
which is mainly used to write /options/options_ns.r
and /options/options_runtime.r
ensureRapptime()
takes care of ensuring the existence of the default global_dir
directory.ensureRapptime()
--> ensureRapptime()
initializeRappOptions()
--> initializeRappOptions()
overwrite
argument to ensureProjectComponents()
overwrite
argument to ensureRappComponents()
ensureRappComponents()
(tidySource
).*RappHome()
to *RappGlobal()
mergeNamespaceRappOptions()
:
Changed option context_home
to global_dir
for consistency reasonsns_home
in global_dir
global_dir
in global_dir
contexts
in global_dir
directory renamed to ns
for
consistency reasonsensureRappComponents()
:
Option files are only written they don't exist yetensureRappComponents()
:
option file content is a bit more generic (lib = .libPaths()[1]
instead
of explicit file path)ensureProjectComponents()
and ensureRappComponents()
.options_runtime.r
(runtime specific options) and options.r
(package project specific options)rapp/apps
directory with a demo app test
. Each app directory has
the following structure: ./options
: contains options_runtime.r
and options.r
./R
: R scriptsensureRapptime()
is now able to read options from
/options/options_runtime.r
(see method for signature missing
)hasOptionFile()
: checks for existence of options.r
hasRuntimeOptionFile()
: checks for existence of options_runtime.r
readRappOptionFile()
: reads option file contentensureContextRappOptions()
--> mergeNamespaceRappOptions()
setContextRappOption()
--> setNamespaceRappOption()
getContextRappOption()
--> getNamespaceRappOption()
setRuntimeStage()
--> setRuntimeMode()
getRuntimeStage()
--> getRuntimeMode()
ctx
changed to ns
in various functions/methodsruntime_stage
changed to runtime_mode
in various functions/methodsvignettes
subdirectory in ensureRapptime()
mergeNamespaceRappOptions()
:<global_dir>/contexts/
ensureGlobalDirectory()
:<global_dir>/contexts/
getLibrary()
: ...
arguments getGlobalDirectory()
: ...
arguments getRuntimeMode()
: ...
arguments Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.