available_packages: List Available Packages at CRAN-like Repositories, Including...

View source: R/available-packages.R

available_packagesR Documentation

List Available Packages at CRAN-like Repositories, Including Local Caches

Description

This function is similar to utils::available.packages(), but also includes the crancache repositories in the list.

Usage

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

Arguments

contriburl

URL(s) of the ‘contrib’ sections of the repositories. Specify this argument only if your repository mirror is incomplete, e.g., because you burned only the ‘contrib’ section on a CD.

method

download method, see download.file.

fields

a character vector giving the fields to extract from the ‘PACKAGES’ file(s) in addition to the default ones, or NULL (default). Unavailable fields result in NA values.

type

character string, indicate which type of packages: see install.packages.

If type = "both" this will use the source repository.

filters

a character vector or list or NULL (default). See ‘Details’.

repos

character vector, the base URL(s) of the repositories to use.

See Also

Other caching package management functions: download_packages, install_packages, update_packages


r-lib/crancache documentation built on July 27, 2023, 4:55 p.m.