Disable addon
package(s) of a SsimLibrary
.
disableAddon(ssimLibrary, name) # S4 method for character disableAddon(ssimLibrary, name) # S4 method for SsimLibrary disableAddon(ssimLibrary, name)
ssimLibrary |
|
---|---|
name | character string or vector of addon name(s) |
This function invisibly returns TRUE
upon success (i.e.successful deactivation
of the addon) or FALSE
upon failure.
#># Specify file path and name of new SsimLibrary myLibraryName <- file.path(tempdir(), "testlib") # Set up a SyncroSim Session, SsimLibrary, and Project mySession <- session() myLibrary <- ssimLibrary(name = myLibraryName, session = mySession, package = "stsim") # Enable addon package enableAddon(myLibrary, c("stsimsf"))#>#> name description enabled #> 1 stsimsf Integrates stocks and flows into the ST-Sim simulation model TRUE #> currentVersion minimumVersion #> 1 3.3.4 3.2.10#>#> name description enabled #> 1 stsimsf Integrates stocks and flows into the ST-Sim simulation model FALSE #> currentVersion minimumVersion #> 1 3.3.4 N/A# }