n_available_packages: Number of Available R Packages and R Versions from MRAN

View source: R/cran_packages.R

n_available_packagesR Documentation

Number of Available R Packages and R Versions from MRAN

Description

MRAN has an archive of Snapshots of CRAN dating back to September 17 2014. These functions return the number of available packages and the available R version according to the snapshot of https://cran.r-project.org on MRAN.

Usage

n_available_packages(date = Sys.Date())

available_r_version(date = Sys.Date())

Arguments

date

the date of the snapshot to be used. It can be a Date object or a character in the format %Y-%m-%d.

Details

MRAN has data starting from September 17 2014. Data for a few selected dates before September 17 2014 can be obtained from the dataset CRANpackages from the package Ecdat. A more complete dataset ranging from 2001 until today is included in the package as cran_history.

Note that for some dates there is no snapshot on MRAN. The function will return an error in those cases.

Value

the number of available packages as an integer or the R version number as a character

See Also

cran_history


ibawds documentation built on June 17, 2022, 9:07 a.m.