Add v3 r and rstudio images with R 4.5.3 and updated packages#195
Open
remlapmot wants to merge 15 commits intoopensafely-core:mainfrom
Open
Add v3 r and rstudio images with R 4.5.3 and updated packages#195remlapmot wants to merge 15 commits intoopensafely-core:mainfrom
remlapmot wants to merge 15 commits intoopensafely-core:mainfrom
Conversation
Add v3 dependencies for httpgd via unigd
Remove parglm from v3 as no longer on CRAN. parglm was archived on CRAN on 2026-01-29. I believe that fastglm is its closest replacement on CRAN on the v3 CRAN_DATE.
Only run `just check` for v2 and v3 since packages.toml does not exist for v1 Allow for v3 in else condition Protect against v#/pkg.lock file not existing on first run
And pass version to `just check` in CI
Use MAJOR_VERSION instead of hardcoded v2 Create .local_pkg_dir object as a hidden object - as its name begins with a dot. Convert local-packages-README.md to Rmd to pass version Delete typo Amends for v3 when writing package list
Add MAJOR_VERSION ENV for rprofile-site-append-2.R Ensure MAJOR_VERSION is available to R and rstudio-server
Amend hardcoded v2 to use MAJOR_VERSION environment variable In tests/test-loading-packages.R issue a more informative message (which will likely reveal which runtime system dependency package is missing) if a package fails to load
Since OpenBLAS (which includes its own LAPACK) is typically 4–6× faster for linear algebra operations than the reference netlib BLAS/LAPACK that Debian ships by default.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Paging @bloodearnest
R 4.5.3, which according to the R-Core team will be the last patch release of R 4.5 https://stat.ethz.ch/pipermail/r-announce/2026/000718.html, was released last week on the 11th March. So I'd say it makes sense to have v3 r and rstudio images including that - which is what this does (and the v2 image is about 1 year old now - which is my personal limit for R related stuff).
The v3 additions are essentially a copy of what we do for v2 with the updated R and updated
CRAN_DATE:CRAN_DATEgets us the current versions of the packages notably including ggplot2 version 4.MAJOR_VERSIONenv var.CRAN_DATEthe parglm R package is no longer available on CRAN https://cran.r-project.org/package=parglm, and the parglm GitHub repo has been untouched for 5 years https://github.com/boennecd/parglm, so in v3 I have replaced parglm with the fastglm package https://cran.r-project.org/package=fastglm.sessionInfo()this is reported in the following linesAs usual there was a nice summary of what's new in R 4.5 by Jumping Rivers https://www.jumpingrivers.com/blog/whats-new-r45/.
I don't believe I touched anything to do with v1 - so its epic 2hr build should still run. I have run the v2 and v3 r and rstudio builds and tests locally.
Maybe the opensafely CLI would need checking to see if it allows r:v3 and rstudio:v3?
Also - remember I have no permissions - so I can't formally 'request review' - and you'll have to trigger CI builds etc.