Skip to content

Commit 96746ff

Browse files
authored
List most recent snapshots first utils.R
1 parent bb4beec commit 96746ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/utils.R

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ snapshots <- function() {
1010
}
1111
url <- "https://production.r-multiverse.org/snapshots.json"
1212
snapshots <- jsonlite::stream_in(gzcon(url(url)), verbose = FALSE)
13+
dates <- as.Date(snapshots$snapshot)
14+
snapshots <- snapshots[rev(order(dates)), ]
1315
cache[["snapshots"]] <- snapshots
1416
cache[["snapshots"]]
1517
}

0 commit comments

Comments
 (0)