kopia lustrzana https://github.com/jupyterhub/repo2docker
Merge pull request #1401 from rgaiacs/1384-upgrade-r
Change default R version from 4.2 to 4.4pull/1451/head
commit
734a729201
|
@ -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("-")
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
r-2022-06-23
|
r-2025-07-01
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Ładowanie…
Reference in New Issue