
Install a package's most recent CRAN Archive version
Source:R/reproducibility_check.R
dot-repro_cran_archive_install.RdEvery package ever published to CRAN keeps its full version history under
the CRAN Archive (https://cran.r-project.org/src/contrib/Archive/<pkg>/),
even after the live repository stops serving it. This lists that directory,
takes the most recent version by file modification time (the directory
listing carries no other reliable ordering), and installs the source
tarball directly — the one fallback worth trying automatically when a
CRAN-source dependency is not on live CRAN, since it needs no extra
service or paper-specific date, just the package name.