Removes package from SyncroSim installation

removePackage(name, session = NULL, force = FALSE)

# S4 method for ANY,character
removePackage(name, session = NULL, force = FALSE)

# S4 method for ANY,missingOrNULL
removePackage(name, session = NULL, force = FALSE)

# S4 method for ANY,Session
removePackage(name, session = NULL, force = FALSE)

Arguments

name

character. The name of the package to remove

session

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

force

logical. If TRUE, remove without requiring confirmation from the user. Default is FALSE

Value

Invisibly returns TRUE upon success (i.e.successful removal) and FALSE upon failure.

Examples

# \donttest{
# Set SyncroSim Session
mySession <- session()

# Remove package from SyncroSim Session
removePackage("stsim", mySession, force = FALSE)
#> Do you really want to remove package 'stsim'? (y/n)
#> Removal of package <stsim> skipped
# }