Update filesystem paths of a scenario consistently.
This function should be used to change the filesystem paths stored in a scenario object. Useful when moving a scenario from one computer to another.
scenario.update.paths(scenario, from, to, fixed = TRUE)
scenario |
( |
from |
character string containing a regular expression (or character
string for |
to |
the replacement string.character string. For |
fixed |
logical. If |
The updated scenario
## Not run: scenario <- readScenario(filename = "scenario.txt") scenario <- scenario.update.paths(scenario, from = "/home/manuel/", to = "/home/leslie") ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.