add.config | R Documentation |
Enables project specific configuration to be added to the global config object. The
allowable format is key value pairs which are appended to the end of the config
object, which is accessible from the global environment.
add.config(..., apply.override = FALSE)
... |
A series of key-value pairs containing the configuration. The key is the
name that gets added to the config object. These can be overridden at load
time through the |
apply.override |
A boolean indicating whether overrides should be applied. This
can be used to add a setting disregarding arguments to |
Once defined, the value can be accessed from any ProjectTemplate
script by
referencing config$my_project_var
.
library('ProjectTemplate')
## Not run:
add.config(
keep_bigdata=TRUE, # Whether to keep the big data file in memory
parse=7 # number of fields to parse
)
if (config$keep_bigdata) ...
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.