Skip to content
Snippets Groups Projects
Commit ca412a4c authored by Johannes Boog's avatar Johannes Boog
Browse files

[bugfix] update only options that are present in cfg file

   before the complete config was replaced by the cfg file
   now, only specific options defined in the cfg file are updated
parent b3f3cf24
No related branches found
No related tags found
1 merge request!31[docs] examples polished
...@@ -24,8 +24,10 @@ dsa <- NULL ...@@ -24,8 +24,10 @@ dsa <- NULL
if(file.exists("config.yml")){ if(file.exists("config.yml")){
cfg <- config::get() cfg <- config::get()
for(i in names(op.r2ogs6)){ for(i in names(cfg)){
eval(parse(text = paste0("options(", i, " = cfg$", i, ")"))) if(i %in% names(op.r2ogs6)) {
eval(parse(text = paste0("options(", i, " = cfg$", i, ")")))
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment