Merge pull request #1107 from yuvipanda/new-r

Bump default R version to 4.1
pull/1108/head^2
Simon Li 2022-01-08 14:44:37 +00:00 zatwierdzone przez GitHub
commit 43525352a7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -81,7 +81,7 @@ class RBuildPack(PythonBuildPack):
"4.1": "4.1.2-1.1804.0",
}
# the default if nothing is specified
r_version = "3.6"
r_version = "4.1"
if not hasattr(self, "_r_version"):
parts = self.runtime.split("-")

Wyświetl plik

@ -1,2 +1,7 @@
#!/usr/bin/env Rscript
library('ggplot2')
# Fail if version is not 4.1
if (!(version$major == "4" && as.double(version$minor) >= 1 && as.double(version$minor) < 2)) {
quit("yes", 1)
}

Wyświetl plik

@ -22,7 +22,7 @@ def test_unsupported_version(tmpdir):
@pytest.mark.parametrize(
"runtime_version, expected", [("", "3.6"), ("3.6", "3.6"), ("3.5.1", "3.5")]
"runtime_version, expected", [("", "4.1"), ("3.6", "3.6"), ("3.5.1", "3.5")]
)
def test_version_specification(tmpdir, runtime_version, expected):
tmpdir.chdir()