File tree Expand file tree Collapse file tree 5 files changed +7
-2
lines changed Expand file tree Collapse file tree 5 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ def r_version(self):
69
69
"""
70
70
# Available versions at https://cran.r-project.org/src/base/
71
71
version_map = {
72
+ "4.4" : "4.4.1" ,
73
+ "4.3" : "4.3.3" ,
72
74
"4.2" : "4.2.1" ,
73
75
"4.1" : "4.1.3" ,
74
76
"4.0" : "4.0.5" ,
@@ -97,6 +99,9 @@ def r_version(self):
97
99
# available. Users can however explicitly specify the full version to get something specific
98
100
if r_version in version_map :
99
101
r_version = version_map [r_version ]
102
+ elif len (r_version .split ("." )) == 2 :
103
+ # must have x.y.z version, add .0 for unrecognized (future) R versions
104
+ r_version += ".0"
100
105
101
106
# translate to the full version string
102
107
self ._r_version = r_version
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ r-4.4-2025-01-01
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ library('digest')
3
3
4
4
# Fail if version is not 4.0
5
5
print(version )
6
- if (! (version $ major == " 4" && as.double(version $ minor ) > = 0 && as.double(version $ minor ) < 1 )) {
6
+ if (! (version $ major == " 4" && as.double(version $ minor ) > = 4 && as.double(version $ minor ) < 5 )) {
7
7
quit(" yes" , 1 )
8
8
}
9
9
You can’t perform that action at this time.
0 commit comments