scenario_update_paths | R Documentation |
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.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
base::grep()
## Not run: scenario <- readScenario(filename = "scenario.txt") scenario <- scenario_update_paths(scenario, from = "/home/manuel/", to = "/home/leslie") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.