Skip to content

Commit 54636c6

Browse files
committed
Bump default R version to 4.1
3.6 is almost 4 years old now.
1 parent d688997 commit 54636c6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

repo2docker/buildpacks/r.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def r_version(self):
8080
"4.1": "4.1.2-1.1804.0",
8181
}
8282
# the default if nothing is specified
83-
r_version = "3.6"
83+
r_version = "4.1"
8484

8585
if not hasattr(self, "_r_version"):
8686
parts = self.runtime.split("-")

tests/r/simple/verify

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
#!/usr/bin/env Rscript
22
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

Comments
 (0)