We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d688997 commit 54636c6Copy full SHA for 54636c6
repo2docker/buildpacks/r.py
@@ -80,7 +80,7 @@ def r_version(self):
80
"4.1": "4.1.2-1.1804.0",
81
}
82
# the default if nothing is specified
83
- r_version = "3.6"
+ r_version = "4.1"
84
85
if not hasattr(self, "_r_version"):
86
parts = self.runtime.split("-")
tests/r/simple/verify
@@ -1,2 +1,7 @@
1
#!/usr/bin/env Rscript
2
library('ggplot2')
3
+
4
+# Fail if version is not 4.1
5
+if (!(version$major == "4" && as.double(version$minor) >= 1 && as.double(version$minor) < 2)) {
6
+ quit("yes", 1)
7
+}
0 commit comments