The list of packages is either copied from a local mirror (specified by a
file:// URI) or downloaded. If downloaded, the list is cached
for the Rsession in a per-repository file in tempdir()
with a name like
repos_http%3a%2f%2fcran.r-project.org%2fsrc%2fcontrib.rds By default, the return value includes only packages whose version and
OS requirements are met by the running version of R, and only gives
information on the latest versions of packages.
Argument filters
can be used to select which of the packages on the
repositories are reported. It is called with its default value
(NULL
) by functions such as install.packages
: this value
corresponds to getOption("available_packages_filters")
and to c("R_version", "OS_type", "subarch", "duplicates")
if
that is unset or set to NULL
.
The built-in filters are
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
If all the filters are from this set, then they can be specified as a
character vector; otherwise filters
should be a list with
elements which are character strings, user-defined functions or
add = TRUE
(see below).
User-defined filters are functions which take a single argument, a
matrix of the form returned by available.packages
, and
return a matrix consisting of a subset of the rows of the argument.
The special filter add = TRUE
appends the other
elements of the filter list to the default filters.