How can I find out when an R package was first released on CRAN? This question is related, but does not answer my question. And I don't believe the citation
function helps either.
Use the crandb API https://github.com/metacran/crandb
URL call https://crandb.r-pkg.org/MASS/all
with jq
on the CLI
curl https://crandb.r-pkg.org/MASS/all | jq '[.versions[]][0].Date'
#> "2009-05-06"
OR in R
library(jqr)
curl::curl_download( 'https://crandb.r-pkg.org/MASS/all', (f <- tempfile()))
jq(paste0(readLines(f), collapse=""), "[.versions[]][0].Date")
#> "2009-05-06"
OR in R with jsonlite
jsonlite::fromJSON("https://crandb.r-pkg.org/MASS/all")$versions[[1]]$Date
#> [1] "2009-05-06"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With