Skip to content

Commit

Permalink
Switch to RSPM snapshot for legacy package versions (MRAN is dead)
Browse files Browse the repository at this point in the history
The closest frozen date to MRAN's 2018-05-01 is RSPM's 2018-05-03.
The only dependency that was updated in these two days was stringi
1.2.2 on 2018-05-02

https://cran.r-project.org/src/contrib/Archive/stringi/
  • Loading branch information
jdblischak committed Feb 19, 2024
1 parent 14ea0c5 commit aac8441
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/legacy-package-versions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ yaml,2.1.19,archive
backports,1.1.2,archive
R.methodsS3,1.7.1,archive
glue,1.2.0,archive
stringi,1.1.7,archive
stringi,1.2.2,archive
curl,3.2,archive
openssl,1.0.1,archive
base64enc,0.1-3,current
Expand Down
4 changes: 2 additions & 2 deletions scripts/download-legacy-versions.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# defined in .github/workflows/legacy.yaml

output <- "data/legacy-package-versions.csv"
snapshot <- "2018-05-01"
snapshot <- "2018-05-03"

suppressPackageStartupMessages({
library(igraph)
Expand All @@ -13,7 +13,7 @@ suppressPackageStartupMessages({

# Download available package versions from MRAN snapshot
# https://mran.microsoft.com/timemachine
mranUrl <- sprintf("https://cran.microsoft.com/snapshot/%s/", snapshot)
mranUrl <- sprintf("https://packagemanager.posit.co/cran/%s", snapshot)

mran <- available.packages(contrib.url(mranUrl, "source"))

Expand Down

1 comment on commit aac8441

@jdblischak
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.