Skip to content

Commit 9201439

Browse files
committed
manually define iSFALSE if R < 3.5
1 parent c722988 commit 9201439

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/metrics.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ NULL
104104
NULL
105105

106106

107-
if(getRversion() < "3.4.2")
108-
isFALSE <- function (x) {
107+
# if(!exists("isFALSE"))
108+
if(getRversion() < "3.5")
109+
isFALSE <- function(x) {
109110
is.logical(x) && length(x) == 1L && !is.na(x) && !x
110111
}
111112

0 commit comments

Comments
 (0)