uninstall.packages: uninstalls (removes) Installed Packages

Description Usage Arguments Value See Also Examples

View source: R/install.R

Description

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

Usage

1

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.

Value

Invisible NULL

See Also

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

Examples

1
2
3
4
5
6
7
## Not run: 
install.packages(c("reshape", "plyr"))
require(plyr)
uninstall.packages(c("reshape", "plyr"))
install.packages(c("reshape", "plyr"))

## End(Not run)

installr documentation built on Oct. 7, 2018, 1:08 a.m.