Learn R Programming

rsyncrosim (version 2.1.9)

packages: 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 character packages(ssimObject = NULL, installed = TRUE)

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

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

# S4 method for SsimLibrary packages(ssimObject)

Value

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

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

Examples

Run this code
if (FALSE) {
# 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)
}

Run the code above in your browser using DataLab