available.packages
List Available Packages at CRAN-like Repositories
Description
List the packages that available at one or more repositories.
Usage
available.packages(contriburl = contrib.url(getOption("repos"), type),
method, fields = NULL, type = getOption("pkgType"),
filters = NULL)
Arguments
contriburl |
URL(s) of the contrib sections of the repositories.
|
method |
This argument is ignored.
|
fields |
a character vector to give the fields that should extract from the 'PACKAGES' files besides the default fields.
|
type |
a character vector to indicate the type of package to download an install.
The possible values can be "source", "mac.binary", "mac.binary.leopard", "win.binary" and "win64.binary".
|
filters |
a character vector or list, used to select which packages will be shown.
|
Details
Besides the fields input from outside, the required fields are acquired by tools:::.get_standard_repository_db_fields() and "File".
All these combined together as a character vector.
If the filters is NULL, then tries to get the value by calling getOption("available_packages_filters").
Value
A matrix with one row to indicate a package. Each row name is the package name, and the column names are defined by fields and standard reposity fields.
See Also
Examples
## Not run:
available.packages()[1:5,]
## End(Not run)