\HeaderA{remove.packages}{Remove Installed Packages}{remove.packages}
\keyword{utilities}{remove.packages}
\begin{Description}\relax
Removes installed packages/bundles and updates index information
as necessary.
\end{Description}
\begin{Usage}
\begin{verbatim}
remove.packages(pkgs, lib, version)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{pkgs}] a character vector with the names of the package(s) or
bundle(s) to be removed.
\item[\code{lib}] a character vector giving the library directories to remove the
packages from.  If missing, defaults to the first element in
\code{\LinkA{.libPaths}{.libPaths}()}.
\item[\code{version}] A character vector specifying version(s) with versioned
installs of the package(s) to remove.  If none is provided,
the system will remove an unversioned install of the package if one
is found, otherwise the latest versioned install.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
If an element of \code{pkgs} matches a bundle name, all the packages
in the bundle will be removed.  This takes precedence over matching a
package name.

\code{pkgs} and \code{version} will be recycled if necessary to the
length of the longer one.
\end{Details}
\begin{SeeAlso}\relax
\code{\LinkA{REMOVE}{REMOVE}} for a command line version;
\code{\LinkA{install.packages}{install.packages}} for installing packages.
\end{SeeAlso}

