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.
Arguments
- scenario
list()
Data structure containing irace settings. The data structure has to be the one returned by the functiondefaultScenario()orreadScenario().- from
character(1)
Character string containing a regular expression (or character string forfixed = TRUE) to be matched.- to
character(1)
The replacement string.character string. Forfixed = FALSEthis can include backreferences"\1"to"\9"to parenthesized subexpressions offrom.- fixed
logical(1)
IfTRUE,fromis a string to be matched as is.
Examples
if (FALSE) { # \dontrun{
scenario <- readScenario(filename = "scenario.txt")
scenario <- scenario_update_paths(scenario, from = "/home/manuel/", to = "/home/leslie")
} # }