Retrieves the packages installed or available in the current session if
called on a Session
object, or the packages added to a
SyncroSim Library if called on a SsimLibrary
object.
Usage
packages(ssimObject = NULL, installed = TRUE)
# S4 method for class 'character'
packages(ssimObject = NULL, installed = TRUE)
# S4 method for class 'missingOrNULL'
packages(ssimObject = NULL, installed = TRUE)
# S4 method for class 'Session'
packages(ssimObject = NULL, installed = TRUE)
# S4 method for class 'SsimLibrary'
packages(ssimObject)
Arguments
- ssimObject
Session
orSsimLibrary
object. IfNULL
(default),session()
will be used- installed
logical or character.
TRUE
(default) to list installed packages orFALSE
to list available packages on the server
Examples
# \donttest{
# Set the file path and name of the new SsimLibrary
myLibraryName <- file.path(tempdir(),"testlib")
# Set the SyncroSim Session and SsimLibrary
mySession <- session()
myLibrary <- ssimLibrary(name = myLibraryName, session = mySession)
# List all installed packages
packages(mySession)
#> name version
#> 1 dgsim 3.0.0
#> 2 foresce 2.0.0
#> 3 gglanalytics 1.1.0
#> 4 harvest 1.1.0
#> 5 harvestreports 1.1.0
#> 6 helloworldTimePy 2.0.0
#> 7 lftfc 1.0.0
#> 8 stsim 4.0.1
#> 9 stsimecodep 4.0.0
#> 10 stsimLftfcConnector 1.0.0
#> 11 stsimpfvc 2.0.0
#> description
#> 1 Simulates demographics of wildlife populations
#> 2 Forecasting scenarios of future land cover
#> 3 Analytics APIs interface
#> 4 Harvest backup tool
#> 5 ApexRMS Harvest reports
#> 6 Example demonstrating how to use timesteps with a python model
#> 7 LANDFIRE Total Fuel Change Tool
#> 8 The ST-Sim state-and-transition simulation model
#> 9 Calculates TNC's unified ecological departure from reference conditions in ST-Sim
#> 10 Connector package between ST-Sim and LFTFC
#> 11 Projected Fuel and Vegetation Change (PFVC) for LANDFIRE
#> location
#> 1 C:\\Users\\DiegoBilski\\AppData\\Local\\SyncroSim Studio\\Packages\\dgsim\\3.0.0
#> 2 C:\\gitprojects\\foresce\\syncrosim-3\\src
#> 3 C:\\gitprojects\\GoogleAnalytics\\src
#> 4 C:\\gitprojects\\Harvest\\src
#> 5 C:\\gitprojects\\harvest-reports\\src
#> 6 C:\\Users\\DiegoBilski\\AppData\\Local\\SyncroSim Studio\\Packages\\helloworldTimePy\\2.0.0
#> 7 C:\\gitprojects\\lftfc\\src
#> 8 C:\\Users\\DiegoBilski\\AppData\\Local\\SyncroSim Studio\\Packages\\stsim\\4.0.1
#> 9 C:\\Users\\DiegoBilski\\AppData\\Local\\SyncroSim Studio\\Packages\\stsimecodep\\4.0.0
#> 10 C:\\gitprojects\\stsimLftfcConnector\\src
#> 11 C:\\gitprojects\\stsimpvfc\\syncrosim-3\\src
#> status
#> 1 OK
#> 2 OK
#> 3 OK
#> 4 OK
#> 5 OK
#> 6 OK
#> 7 OK
#> 8 OK
#> 9 OK
#> 10 OK
#> 11 OK
# List all available packages on the server (including currently installed)
packages(installed = FALSE)
#> name version
#> 1 burnP3Plus 2.0.0
#> 2 burnP3PlusCell2Fire 2.0.0
#> 3 burnP3PlusPrometheus 2.0.0
#> 4 demosales 2.0.0
#> 5 dgsim 3.0.0
#> 6 ecoClassify 1.0.1
#> 7 helloworld 2.0.0
#> 8 helloworld 2.0.1
#> 9 helloworldPipeline 2.0.0
#> 10 helloworldSpatial 2.0.0
#> 11 helloworldTime 2.0.0
#> 12 helloworldTimePy 2.0.0
#> 13 helloworldUncertainty 2.0.1
#> 14 omniscape 2.1.1
#> 15 stsim 4.0.1
#> 16 stsimecodep 4.0.0
#> 17 wisdm 2.1.0
#> 18 wisdmStsimConnector 1.0.0
#> 19 wisdmStsimConnector 1.0.1
#> description
#> 1 Burn-P3+ package for burn probability modeling
#> 2 Cell2Fire fire growth model package for BurnP3+
#> 3 Prometheus fire growth model package for BurnP3+
#> 4 Demo Sales SyncroSim Package
#> 5 Simulates demographics of wildlife populations
#> 6 ecoClassify package for image classification
#> 7 Example demonstrating how to create a SyncroSim package
#> 8 Example demonstrating how to create a SyncroSim package
#> 9 Example demonstrating how to use pipelines with an R model
#> 10 Example demonstrating how to use spatial data with an R model
#> 11 Example demonstrating how to use timesteps with an R model
#> 12 Example demonstrating how to use timesteps with a python model
#> 13 Example demonstrating how to use iterations with an R model
#> 14 Omni-directional habitat connectivity based on circuit theory
#> 15 The ST-Sim state-and-transition simulation model
#> 16 Calculates TNC's unified ecological departure from reference conditions in ST-Sim
#> 17 Workbench for Integrated Species Distribution Modeling
#> 18 Connector package between WISDM and ST-Sim
#> 19 Connector package between WISDM and ST-Sim
#> url
#> 1 https://burnp3.github.io/BurnP3Plus/
#> 2 https://burnp3.github.io/BurnP3Plus/
#> 3 https://burnp3.github.io/BurnP3Plus/
#> 4 https://apexrms.github.io/demosales/
#> 5 https://apexrms.github.io/dgsim/
#> 6 https://apexrms.github.io/ecoClassify/
#> 7 https://apexrms.github.io/helloworld/
#> 8 https://apexrms.github.io/helloworld/
#> 9 https://apexrms.github.io/helloworldEnhanced/
#> 10 https://apexrms.github.io/helloworldEnhanced/
#> 11 https://apexrms.github.io/helloworldEnhanced/
#> 12 https://apexrms.github.io/helloworldEnhanced/
#> 13 https://apexrms.github.io/helloworldEnhanced/
#> 14 https://apexrms.github.io/omniscape/
#> 15 https://docs.stsim.net/
#> 16 https://docs.stsim.net/
#> 17 https://apexrms.github.io/wisdm/
#> 18 https://apexrms.github.io/wisdm/
#> 19 https://apexrms.github.io/wisdm/
# Check the package(s) in your SsimLibrary
packages(myLibrary)
#> name description version schema status
#> 1 core SyncroSim Core Package 3.0.9 3 OK
#> 2 stsim The ST-Sim state-and-transition simulation model 4.0.1 4 OK
# }