Removes a package from SyncroSim installation
Usage
uninstallPackage(packages, versions = NULL, session = NULL)
# S4 method for class 'ANY,ANY,character'
uninstallPackage(packages, versions = NULL, session = NULL)
# S4 method for class 'ANY,ANY,missingOrNULL'
uninstallPackage(packages, versions = NULL, session = NULL)
# S4 method for class 'ANY,ANY,Session'
uninstallPackage(packages, versions = NULL, session = NULL)
Examples
# \donttest{
# Set SyncroSim session
mySession <- session()
# Install packages to SyncroSim session
installPackages(packages = c("stsim", "stsim"),
versions = c("4.0.0", "4.0.1"))
#> Error in installPackages(packages = c("stsim", "stsim"), versions = c("4.0.0", "4.0.1")): could not find function "installPackages"
# Uninstalls specific version of package from SyncroSim session
uninstallPackage(packages = "stsim", versions = "4.0.0", session = mySession)
#> The package <stsim v4.0.0> is not installed.
#> The package is not installed.
# Uninstalls all instances ofa package from SyncroSim session
uninstallPackage(packages = "stsim", session = mySession)
#> Package <stsim v4.0.1> removed
# }