available.packages
List Available Packages at CRAN-like Repositories

Description

Lists the packages that are available in one or more repositories.

Usage

available.packages(contriburl = contrib.url(repos, type), 
                   method, fields = NULL, type = getOption("pkgType"),
                   filters = NULL, repos = getOption("repos"))

Arguments

contriburl the URL(s) in the contrib sections of the repositories.
method this argument is ignored.
fields a character vector. Specifies the fields to extract from the 'PACKAGES' files, in addition to the default fields.
type a character vector. Indicates the type of package to download and install. The possible values are as follows.
  • "source"
  • "mac.binary"
  • "mac.binary.leopard"
  • "win.binary"
  • "win64.binary"
filters a character vector or list. Specifies the packages to display.
repos a character vector naming the repositories in which to search for packages.

Details

In addition to the fields that are input from outside, the required fields are acquired by tools:::.get_standard_repository_db_fields() and "File". All of these fields are combined as a character vector.
If filters is NULL, then available.packages tries to get the value by calling getOption("available_packages_filters").
Value
returns a matrix with each row identifying a package. Each row name is the package name, and the column names are defined by fields and the standard repository fields.
See Also
install.packages, download.packages, contrib.url
Examples
## Not run: 
available.packages()[1:5,]

## End(Not run)
Package utils version 6.0.0-69
Package Index