Merge pull request #1401 from rgaiacs/1384-upgrade-r

Change default R version from 4.2 to 4.4
pull/1451/head
Yuvi 2025-08-19 08:25:18 -07:00 zatwierdzone przez GitHub
commit 734a729201
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
5 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -69,9 +69,9 @@ class RBuildPack(PythonBuildPack):
""" """
# Available versions at https://cran.r-project.org/src/base/ # Available versions at https://cran.r-project.org/src/base/
version_map = { version_map = {
"4.4": "4.4.1", "4.4": "4.4.2",
"4.3": "4.3.3", "4.3": "4.3.3",
"4.2": "4.2.1", "4.2": "4.2.3",
"4.1": "4.1.3", "4.1": "4.1.3",
"4.0": "4.0.5", "4.0": "4.0.5",
"3.6": "3.6.3", "3.6": "3.6.3",
@ -87,7 +87,7 @@ class RBuildPack(PythonBuildPack):
# - tests/unit/test_r.py -> test_version_specification # - tests/unit/test_r.py -> test_version_specification
# - tests/r/r-rspm-apt/verify # - tests/r/r-rspm-apt/verify
# #
r_version = version_map["4.2"] r_version = version_map["4.4"]
if not hasattr(self, "_r_version"): if not hasattr(self, "_r_version"):
parts = self.runtime.split("-") parts = self.runtime.split("-")

Wyświetl plik

@ -1 +1 @@
r-2022-06-23 r-2025-07-01

Wyświetl plik

@ -2,8 +2,8 @@
library('digest') library('digest')
# Fail if version isn't 4.2, the default version for the RBuildPack # Fail if version isn't 4.4, the default version for the RBuildPack
print(version) print(version)
if (!(version$major == "4" && as.double(version$minor) >= 2 && as.double(version$minor) < 3)) { if (!(version$major == "4" && as.double(version$minor) >= 4 && as.double(version$minor) < 5)) {
quit("yes", 1) quit("yes", 1)
} }

Wyświetl plik

@ -1,6 +1,6 @@
Package: binderdescription Package: binderdescription
Version: 0.1 Version: 0.1
Date: 2022-06-23 Date: 2025-07-01
Title: Binder R DESCRIPTION support Title: Binder R DESCRIPTION support
Description: Test that automatically building R packages works Description: Test that automatically building R packages works
Author: Bastian Greshake Tzovaras <bgreshake@googlemail.com> Author: Bastian Greshake Tzovaras <bgreshake@googlemail.com>

Wyświetl plik

@ -8,7 +8,7 @@ from repo2docker import buildpacks
@pytest.mark.parametrize( @pytest.mark.parametrize(
"runtime_version, expected", [("", "4.2"), ("3.6", "3.6"), ("3.5.1", "3.5")] "runtime_version, expected", [("", "4.4"), ("3.6", "3.6"), ("3.5.1", "3.5")]
) )
def test_version_specification(tmpdir, runtime_version, expected, base_image): def test_version_specification(tmpdir, runtime_version, expected, base_image):
tmpdir.chdir() tmpdir.chdir()