Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

scenario.update.paths

Update filesystem paths of a scenario consistently.


Description

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.

Usage

scenario.update.paths(scenario, from, to, fixed = TRUE)

Arguments

scenario

(list())
Data structure containing irace settings. The data structure has to be the one returned by the function defaultScenario or readScenario.

from

character string containing a regular expression (or character string for fixed = TRUE) to be matched.

to

the replacement string.character string. For fixed = FALSE this can include backreferences "\1" to "\9" to parenthesized subexpressions of from.

fixed

logical. If TRUE, from is a string to be matched as is.

Value

The updated scenario

See Also

Examples

## Not run: 
scenario <- readScenario(filename = "scenario.txt")
scenario <- scenario.update.paths(scenario, from = "/home/manuel/", to = "/home/leslie")

## End(Not run)

irace

Iterated Racing for Automatic Algorithm Configuration

v3.4.1
GPL (>= 2)
Authors
Manuel López-Ibáñez [aut, cre] (<https://orcid.org/0000-0001-9974-1295>), Jérémie Dubois-Lacoste [aut], Leslie Pérez Cáceres [aut], Thomas Stützle [aut], Mauro Birattari [aut], Eric Yuan [ctb], Prasanna Balaprakash [ctb], Nguyen Dang [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.