removePackage: Removes SyncroSim package(s)

removePackageR Documentation

Removes SyncroSim package(s)

Description

Removes package(s) from a SsimLibrary.

Usage

removePackage(ssimLibrary, packages)

## S4 method for signature 'character'
removePackage(ssimLibrary, packages)

## S4 method for signature 'SsimLibrary'
removePackage(ssimLibrary, packages)

Arguments

ssimLibrary

SsimLibrary object

packages

character string or vector of package name(s)

Value

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

See Also

packages

Examples

## Not run: 
# Install "stsim" and "stsimecodep" SyncroSim packages
installPackage("stsim")
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)

## End(Not run)


rsyncrosim documentation built on Oct. 15, 2024, 1:06 a.m.