packages: Installed or available packages

packagesR Documentation

Installed or available packages

Description

Retrieves the packages installed or available in the current session if called on a Session-class object, or the packages added to a SyncroSim Library if called on a SsimLibrary-class object.

Usage

packages(ssimObject = NULL, installed = TRUE)

## S4 method for signature 'character'
packages(ssimObject = NULL, installed = TRUE)

## S4 method for signature 'missingOrNULL'
packages(ssimObject = NULL, installed = TRUE)

## S4 method for signature 'Session'
packages(ssimObject = NULL, installed = TRUE)

## S4 method for signature 'SsimLibrary'
packages(ssimObject)

Arguments

ssimObject

Session-class or SsimLibrary-class object. If NULL (default), session() will be used

installed

logical or character. TRUE (default) to list installed packages or FALSE to list available packages on the server

Value

Returns a data.frame of packages installed or templates available for a specified package.

Examples

## Not run: 
# 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)

# List all available packages on the server (including currently installed)
packages(installed = FALSE)
 
# Check the package(s) in your SsimLibrary
packages(myLibrary)

## End(Not run)


rsyncrosim documentation built on Nov. 7, 2025, 5:14 p.m.