Skip to content

Commit fc08ee1

Browse files
committed
Update R 4.2 from 4.2.0 to 4.2.1 and fix tests
1 parent 0b76608 commit fc08ee1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

repo2docker/buildpacks/r.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ def r_version(self):
6363
Will return the version specified by the user or the current default
6464
version.
6565
"""
66+
# Available versions at https://cran.r-project.org/src/base/
6667
version_map = {
67-
"4.2": "4.2.0",
68+
"4.2": "4.2.1",
6869
"4.1": "4.1.3",
6970
"4.0": "4.0.5",
7071
"3.6": "3.6.3",
@@ -75,6 +76,11 @@ def r_version(self):
7576

7677
# the default if nothing is specified
7778
# Use full version is needed here, so it a valid semver
79+
#
80+
# NOTE: When updating this version, also update
81+
# - tests/unit/test_r.py -> test_version_specification
82+
# - tests/r/simple/verify
83+
#
7884
r_version = version_map["4.2"]
7985

8086
if not hasattr(self, "_r_version"):

tests/unit/test_r.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
@pytest.mark.parametrize(
11-
"runtime_version, expected", [("", "4.1"), ("3.6", "3.6"), ("3.5.1", "3.5")]
11+
"runtime_version, expected", [("", "4.2"), ("3.6", "3.6"), ("3.5.1", "3.5")]
1212
)
1313
def test_version_specification(tmpdir, runtime_version, expected):
1414
tmpdir.chdir()

0 commit comments

Comments
 (0)