Skip to content

Commit eb5e8c9

Browse files
authored
Fix build error for R 3.3 and 3.4 (#637)
1 parent 58c5940 commit eb5e8c9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/utils.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ vec_cast_named <- function(x, to, ...) {
88
stats::setNames(vec_cast(x, to, ...), names(x))
99
}
1010

11+
# TODO: remove when minimum R version >= 3.5
12+
if (getRversion() < 3.5) {
13+
isFALSE <- function(x) is.logical(x) && length(x) == 1L && !is.na(x) && !x
14+
}
15+
1116
force_utc <- function(x) {
1217
if (identical(attr(x, "tzone"), "UTC")) {
1318
x

0 commit comments

Comments
 (0)