1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/packrat.R
\name{clean}
\alias{clean}
\title{Remove Packages from the Library}
\usage{
clean(
packages = NULL,
project = NULL,
lib.loc = libDir(project),
dry.run = FALSE,
force = FALSE
)
}
\arguments{
\item{packages}{A set of package names to remove from the project. When
\code{NULL}, \code{\link{unused_packages}} is used to find packages
unused in the project.}
\item{project}{The project directory. Defaults to current working
directory.}
\item{lib.loc}{The library to clean. Defaults to the private package library
associated with the project directory.}
\item{dry.run}{Perform a dry run, returning records on which packages would
have been moved by the current clean action.}
\item{force}{Force package removal, even if they are still in use within the project?}
}
\description{
Remove packages from the given library.
}
\examples{
\dontrun{
# Get unused package records
unused_packages()
# Clean all unused packages
clean()
# Clean specific packages
clean("foo")
}
}
|