run | R Documentation |
Run one or more SyncroSim Scenario
(s).
run(
ssimObject,
scenario = NULL,
summary = FALSE,
copyExternalInputs = FALSE,
transformerName = NULL
)
## S4 method for signature 'character'
run(
ssimObject,
scenario = NULL,
summary = FALSE,
copyExternalInputs = FALSE,
transformerName = NULL
)
## S4 method for signature 'list'
run(
ssimObject,
scenario = NULL,
summary = FALSE,
copyExternalInputs = FALSE,
transformerName = NULL
)
## S4 method for signature 'SsimObject'
run(
ssimObject,
scenario = NULL,
summary = FALSE,
copyExternalInputs = FALSE,
transformerName = NULL
)
ssimObject |
|
scenario |
character, integer, or vector of these. Scenario names or ids.
If |
summary |
logical. If |
copyExternalInputs |
logical. If |
transformerName |
character. The name of the transformer to run (optional) |
Note that breakpoints are ignored unless the SsimObject is a single Scenario.
If summary = FALSE
, returns a result Scenario object or a named list
of result Scenarios. The name is the parent Scenario for each result. If
summary = TRUE
, returns summary info for result Scenarios.
## Not run:
# Set the file path and name of the new SsimLibrary
myLibraryName <- "testlib"
# Set the SyncroSim Session, SsimLibrary, Project, and Scenario
myLibrary <- ssimLibrary(name = myLibraryName,
packages = "helloworldSpatial")
myProject <- project(myLibrary, project = "Definitions")
myScenario <- scenario(myProject, scenario = "My Scenario")
myScenario2 <- scenario(myProject, scenario = "My Scenario 2")
# Run with default parameters
resultScenario <- run(myScenario)
# Only return summary information
resultScenarioSummary <- run(myScenario, summary = TRUE)
# Run 2 scenarios at once
resultScenarios <- run(c(myScenario, myScenario2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.