if (FALSE) {
# Install helloworldSpatial package
addPackage("helloworldSpatial")
# Set the file path and name of the new SsimLibrary
myLibraryName <- file.path(tempdir(),"testlib")
# Set the SyncroSim Session, SsimLibrary, Project, and Scenario
mySession <- session(printCmd=T)
myLibrary <- ssimLibrary(name = myLibraryName,
session = mySession,
package = "helloworldSpatial",
template = "example-library",
forceUpdate = TRUE)
myProject <- project(myLibrary, project = "Definitions")
myScenario <- scenario(myProject, scenario = "My Scenario")
# Run with default parameters
resultScenario <- run(myScenario)
# Only return summary information
resultScenario <- run(myScenario, summary = TRUE)
# Run with multiprocessing
resultScenario <- run(myScenario, jobs = 6)
# Return results as a named list
resultScenario <- run(myScenario, forceElements = TRUE)
}
Run the code above in your browser using DataLab