Skip to content

Commit cc53225

Browse files
committed
Version error handling
1 parent eed6156 commit cc53225

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/backports.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Backport fix from R 3.3:
22
# https://github.com/wch/r-source/commit/4efc81c98d262f93de9e7911aaa910f5c63cd00f
3-
if (getRversion() < 3.3) {
3+
if (getRversion() < "3.3") {
44
absolute.units <- getFromNamespace("absolute.units", "grid")
55
absolute.units.unit <- getFromNamespace("absolute.units.unit", "grid")
66
absolute.units.unit.list <- getFromNamespace("absolute.units.unit.list", "grid")
@@ -18,6 +18,6 @@ if (getRversion() < 3.3) {
1818
on_load(backport_unit_methods())
1919

2020
# isFALSE() is available on R (>=3.5)
21-
if (getRversion() < 3.5) {
21+
if (getRversion() < "3.5") {
2222
isFALSE <- function(x) is.logical(x) && length(x) == 1L && !is.na(x) && !x
2323
}

0 commit comments

Comments
 (0)