Downloads and caches the current list of packages available on CRAN.
Arguments
- cache
Logical. If
TRUE(default), the result is cached usingmemoise::memoise()with a timeout of 30 minutes to avoid repeated downloads. IfFALSE, the metadata is fetched directly from CRAN each time the function is called.
Value
A matrix of package metadata similar to the output of utils::available.packages(),
with package names as row names.
Details
The function downloads the packages.rds file from the CRAN website,
which contains metadata about all available packages. The result is cached using
memoise::memoise() with a timeout of 30 minutes.
