changeConfig: Change the configuration file

Description Usage Arguments Examples

Description

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.

Usage

1
changeConfig(..., path = "")

Arguments

...

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

Examples

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)

sidjai/biosplit documentation built on May 29, 2019, 9:59 p.m.