I would like to know how to obtain the list of versions of a certain package from the CRAN repository, so far what I have been able to observe is that with each package the uploaded versions are maintained, for example taking as a case shiny
, we can access this url
where we can see the versions uploaded, the date and eventually download that version. It occurred to me to process the HTML and get this data, but is there any other more direct way?
A convenient way is to use the package functionality
pkgcache
, specifically, to list the versions:The functionality is based on the fact that CRAN publishes a database
Rds
with all this information, so even without using this package, it is not very complicated to implement a function that allows us to solve this issue:Note: The function is designed to "cache" the metadata between each execution.