Obtain the number of available packages on CRAN and the current R version.
n_available_packages(cran = getOption("repos"))available_r_version(cran = getOption("repos"))
the number of available packages as an integer or the R version number as a character
character vector giving the base URL of the CRAN server to use.
The number of packages on CRAN and the R version can be obtained for selected
dates in the past from the dataset cran_history
.
Note: Previously, these functions could obtain the number of packages on CRAN and the then current R version also for past dates by using snapshots from Microsoft's MRAN. However, MRAN shut down on 1 July 2023 such that this functionality is no longer available.
cran_history