if (FALSE) {
# Specify file path and name of new SsimLibrary
myLibraryName <- file.path(tempdir(), "testlib")
# Set up a SyncroSim Session, SsimLibrary, Project, and 2 Scenarios
mySession <- session()
myLibrary <- ssimLibrary(name = myLibraryName, session = mySession)
myProject <- project(myLibrary, project = "Definitions")
myScenario <- scenario(myProject, scenario = "My Scenario")
myNewScenario <- scenario(myProject,
scenario = "my New Scenario")
# Set myScenario as a dependency of myNewScenario
dependency(myNewScenario, dependency = myScenario)
# Get all dependencies info
dependency(myNewScenario)
# Remove dependency
dependency(myNewScenario, dependency = myScenario, remove = TRUE)
# Force removal of dependency
dependency(myNewScenario, dependency = myScenario, remove = TRUE,
force = TRUE)
}
Run the code above in your browser using DataLab