Description Usage Arguments Details
View source: R/xml_utilities.R
When a HexSim workspace is copied to a new location, the path to the root of
the workspace and the grid file that is stored in the scenario files need to
be updated. When the simulations are run manually via the GUI, HexSim picks
this up and asks the user to re-save the scenario. However, when simulations
are run via command-line, an error occurs unless the path and the grid file
exist. This function updates all the xml scenario files with the new path
passed with: new.grid.path
.
1 2 3 4 5 | workspace.path.modifier(
path.scenarios = NULL,
scenarios = "all",
new.grid.path
)
|
path.scenarios |
The path to the 'Scenarios' folder |
scenarios |
A character vector with the scenarios to be processed or "all" |
new.grid.path |
The fully qualified (i.e. including the full path) of the grid file, including extension |
WARNING: Currently, xml scenario files saved by HexSimR
trigger
a request by HexSim to re-save the files. This is due to very minor
differences in the file formatting, which do not affect the simulations.
These files run with no problems when run via the command-line (i.e.
batchRunner.exe)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.