Description Usage Arguments Examples
Specify a option - value pair to be changed in the configuration file. The function loads up the file as lines and changes those values then rewrites the entire file.
1 | changeConfig(..., path = "")
|
... |
odd members are config element name as a string e.g. "runName", "year". while even values are thevalue to change it to e.g. "runWorld", "2012". |
path |
The path to the config file if different than the package directory |
1 2 3 4 5 6 7 8 9 | cfg <- loadConfig()
changeConfig('year',2014)
changeConfig('year',cfg$year,'runName',cfg$runName)
## Not run:
changeConfig('asdjkf',5)
#Error asdjkf are not valid variables in Config
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.