File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 8484 inst/hooks/exported/pkgdown.R|
8585 tests/testthat/in/.*|
8686 inst/renv-update\.R|
87+ inst/update-ppm-url.R|
8788 inst/update-dependency-graph-existing-packages\.R|
8889 inst/update-existing-hook-dependencies\.R|
8990 renv/activate.R|
Original file line number Diff line number Diff line change 11# old binaries only guaranteed to be available for frozen snapshot
22# https://community.rstudio.com/t/binary-packages-removed-once-new-package-version-released-on-ppm/177282/2
3- lockfile = renv :: lockfile_read()
4- rspm_url = lockfile $ R $ Repositories $ RSPM
3+ lockfile <- renv :: lockfile_read()
4+ rspm_url <- lockfile $ R $ Repositories $ RSPM
55current_date <- Sys.Date() - 3 # available for sure
66
7- to_substract <- max(0 , as.integer(strftime(current_date ,' %u ' )) - 5 )
7+ to_substract <- max(0 , as.integer(strftime(current_date , " %u " )) - 5 )
88ensured_weekday <- current_date - to_substract
9- cat(paste0(" Snapshot day for PPM moved to " , ensured_weekday ))
109updated_url <- gsub(" [0-9]{4}-[0-9]{2}-[0-9]{2}$" , ensured_weekday , rspm_url )
1110lockfile $ R $ Repositories $ RSPM <- updated_url
1211renv :: lockfile_write(lockfile = lockfile )
12+ cat(paste0(" Snapshot day for PPM moved to " , ensured_weekday ))
You can’t perform that action at this time.
0 commit comments