Learn R Programming

rsyncrosim (version 1.5.0)

package: Installed or available packages

Description

Retrieves the packages installed or available for this version of SyncroSim.

Usage

package(ssimObject = NULL, installed = TRUE, listTemplates = NULL)

# S4 method for character package(ssimObject = NULL, installed = TRUE, listTemplates = NULL)

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

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

# S4 method for SsimLibrary package(ssimObject)

Value

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

Arguments

ssimObject

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

installed

logical or character. TRUE (default) to list installed packages, FALSE to list available packages, and "BASE" to list installed base packages

listTemplates

character. Name of a SyncroSim package. If not NULL (default), then lists all templates available for that package. The package must be installed in the current Session. Ignored if ssimObject is a SsimLibrary object

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
package(mySession)

# List all the installed base packages
package(installed = "BASE")

# List all available packages on the server (including currently installed)
package(installed = FALSE)
 
# Check the package you're SsimLibrary is currently using
package(myLibrary)

# Check the templates available for an installed package
addPackage("helloworldSpatial")
package(listTemplates = "helloworldSpatial")
}

Run the code above in your browser using DataLab