Learn R Programming

rsyncrosim (version 2.1.9)

removePackage: Removes SyncroSim package(s)

Description

Removes package(s) from a SsimLibrary-class.

Usage

removePackage(ssimLibrary, packages)

# S4 method for character removePackage(ssimLibrary, packages)

# S4 method for SsimLibrary removePackage(ssimLibrary, packages)

Value

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

Arguments

ssimLibrary

SsimLibrary-class object

packages

character string or vector of package name(s)

See Also

packages

Examples

Run this code
if (FALSE) {
# Install "stsim" and "stsimecodep" SyncroSim packages
installPackage(packages = c("stsim", "stsim"),
               versions = c("4.0.1", "4.3.5"))
installPackage("stsimecodep")

# 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)

# Add package
addPackage(myLibrary, packages = "stsim", versions = "4.0.1")
addPackage(myLibrary, packages = "stsimecodep")
packages(myLibrary)

# Remove package
removePackage(myLibrary, packages = c("stsim", "stsimecodep"))
packages(myLibrary)
}

Run the code above in your browser using DataLab