available_packages: Simpler available.packages

View source: R/cran.R

available_packages_setR Documentation

Simpler available.packages

Description

This is mostly equivalent to utils::available.packages() however it also caches the full result. Additionally the cache can be assigned explicitly with available_packages_set() and reset (cleared) with available_packages_reset().

Usage

available_packages_set(repos, type, db)

available_packages_reset()

available_packages(repos = getOption("repos"), type = getOption("pkgType"))

Arguments

repos

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

type

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

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

See Also

utils::available.packages() for full documentation on the output format.


remotes documentation built on July 26, 2023, 5:40 p.m.