Rev 29153 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{packageStatus}\title{Package Management Tools}\alias{packageStatus}\alias{print.packageStatus}\alias{summary.packageStatus}\alias{update.packageStatus}\alias{upgrade.packageStatus}\alias{upgrade}\description{Summarize information about installed packages and packagesavailable at various repositories, and automatically upgrade outdatedpackages. These tools will replace \code{\link{update.packages}} and friendsin the future and are currently work in progress.}\usage{packageStatus(lib.loc = NULL, repositories = getOption("repositories")())\method{summary}{packageStatus}(object, \dots)\method{update}{packageStatus}(object, lib.loc = levels(object$inst$LibPath),repositories = levels(object$avail$Repository), \dots)\method{upgrade}{packageStatus}(object, ask = TRUE, \dots)}\arguments{\item{lib.loc}{a character vector describing the location of \Rlibrary trees to search through, or \code{NULL}. The default valueof \code{NULL} corresponds to all libraries currently known.}\item{repositories}{a character vector of URLs describing the location of \Rpackage repositories on the Internet or on the local machine.}\item{object}{an object of class \code{"packageStatus"} as returned by\code{packageStatus}.}\item{ask}{if \code{TRUE}, the user is prompted which packages shouldbe upgraded and which not.}\item{\dots}{currently not used.}}\details{There are \code{print} and \code{summary} methods for the\code{"packageStatus"} objects: the \code{print} method gives a brieftabular summary and the \code{summary} method prints the results.The \code{update} method updates the \code{"packageStatus"} object.The \code{upgrade} method is similar to \code{\link{update.packages}}:it offers to install the current versions of those packages which are notcurrently up-to-date.}\value{An object of class \code{"packageStatus"}. This is a list with twocomponents\item{inst}{ a data frame with columns\code{"Package"}, \code{"Version"}, \code{"Priority"},\code{"Bundle"}, \code{"Depends"}, \code{"Built"}, \code{"Status"} and\code{"LibPath"}.}\item{avail}{a data frame with columns\code{"Package"}, \code{"Version"}, \code{"Priority"},\code{"Bundle"}, \code{"Depends"}, \code{"Built"}, \code{"Status"} and\code{"Repository"} (the URL of the directory from which they can befetched).}These have similar content to the \emph{matrices} returned by\code{\link{installed.packages}} and \code{\link{CRAN.packages}}.}\examples{\dontrun{x <- packageStatus()print(x)summary(x)upgrade(x)x <- update(x)print(x)}}\keyword{utilities}