Disable addon package(s) of a SsimLibrary.

disableAddon(ssimLibrary, name)

# S4 method for character
disableAddon(ssimLibrary, name)

# S4 method for SsimLibrary
disableAddon(ssimLibrary, name)

Arguments

ssimLibrary

SsimLibrary object

name

character string or vector of addon name(s)

Value

This function invisibly returns TRUE upon success (i.e.successful deactivation of the addon) or FALSE upon failure.

See also

Examples

# \donttest{ # Install "stsim" SyncroSim package addPackage("stsim")
#> Package <stsim> is already installed
# 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"))
#> Addon <stsimsf> enabled
addon(myLibrary)
#> name #> 1 stsimecodep #> 2 stsimsf #> description #> 1 Calculates ecological departure in ST-Sim using the LANDFIRE Fire Regime Condition Class #> 2 Integrates stocks and flows into the ST-Sim simulation model #> enabled currentVersion minimumVersion #> 1 FALSE 3.3.0 N/A #> 2 TRUE 3.3.2 3.2.10
# Disable addon package disableAddon(myLibrary, c("stsimsf"))
#> Addon <stsimsf> disabled
addon(myLibrary)
#> name #> 1 stsimecodep #> 2 stsimsf #> description #> 1 Calculates ecological departure in ST-Sim using the LANDFIRE Fire Regime Condition Class #> 2 Integrates stocks and flows into the ST-Sim simulation model #> enabled currentVersion minimumVersion #> 1 FALSE 3.3.0 N/A #> 2 FALSE 3.3.2 N/A
# }