This PR addresses #221. It allows to override settings from global.dcf and globals.R through the same interface in load.project and reload.project. Unfortunately my linux laptop decided to update all line endings when building the man files, sorry for that.
Changes:
load.project and list.data now take a variable number of arguments, which override the settings loaded from file. For backward compatibility the old style override.config argument or a single list are still accepted. The arguments are stored in config$.override.config for later usage by add.config.
.load.config and add.config now call the new function .apply.override.config to change the intersect between the overridden configuration and the loaded configuration.
Created new tests for the overriding and backward compatibility, moved tests for add.config to a separate file, changed tests for list, load and reload to use the new interface
This PR addresses #221. It allows to override settings from
global.dcf
andglobals.R
through the same interface inload.project
andreload.project
. Unfortunately my linux laptop decided to update all line endings when building theman
files, sorry for that.Changes:
load.project
andlist.data
now take a variable number of arguments, which override the settings loaded from file. For backward compatibility the old styleoverride.config
argument or a single list are still accepted. The arguments are stored inconfig$.override.config
for later usage byadd.config
..load.config
andadd.config
now call the new function.apply.override.config
to change the intersect between the overridden configuration and the loaded configuration.add.config
to a separate file, changed tests for list, load and reload to use the new interface