Learn R Programming

installr (version 0.23.2)

uninstall.packages: uninstalls (removes) Installed Packages

Description

A wrapper for remove.packages. Useful since it also works if the package is currently loaded into the workspace.

Usage

uninstall.packages(pkgs, lib, warning = TRUE, ...)

Value

Invisible NULL

Arguments

pkgs

a character vector with the names of the packages to be removed.

lib

a character vector giving the library directories to remove the packages from. If missing, defaults to the first element in .libPaths.

warning

boolean (TRUE), should a message be printed in various cases.

...

currently ignored.

See Also

install.packages, remove.packages, install.packages.zip

Examples

Run this code
if (FALSE) {
install.packages(c("reshape", "plyr"))
require(plyr)
uninstall.packages(c("reshape", "plyr"))
install.packages(c("reshape", "plyr"))
}

Run the code above in your browser using DataLab