Rev 43509 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/zpackages.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Development Team% Distributed under GPL 2 or later\name{zpackages}\title{Listing of Packages}\alias{.packages}\description{\code{.packages} returns information about package availability.}\usage{.packages(all.available = FALSE, lib.loc = NULL)}\arguments{\item{all.available}{logical; if \code{TRUE} return a character vectorof all available packages in \code{lib.loc}.}\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.}}\details{\code{.packages()} returns the names of the currentlyattached packages \emph{invisibly} whereas\code{.packages(all.available = TRUE)} gives (visibly) \emph{all}packages available in the library location path \code{lib.loc}.If versioned installs have been used, the names returned will be of theform \code{pkgname_version}.For a package to be regarded as being available it must have a\file{DESCRIPTION} file containing a valid \code{version} field.}\value{A character vector of package base names, invisible unless\code{all.available = TRUE}.}\author{R core;Guido Masarotto for the \code{all.available=TRUE} part of\code{.packages}.}\seealso{\code{\link{library}}, \code{\link{.libPaths}}.}\examples{(.packages()) # maybe just "base".packages(all.available = TRUE) # return all available as character vectorrequire(splines)(.packages()) # "splines", toodetach("package:splines")}\keyword{data}