Skip to content

Commit 38355d4

Browse files
committed
codecov runs older R where is.atomic(NULL) was true, this should fix
1 parent 75b78d0 commit 38355d4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

R/frollapply.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ frollapply = function(X, N, FUN, ..., by.column=TRUE, fill=NA, align=c("right","
101101
nx = length(X)
102102
len = lengths(X)
103103
xnam = names(X)
104-
} else {
104+
} else
105105
stopf("frollapply by.column=TRUE requires 'X' argument to be atomic or a list of those")
106-
}
107106
} else {
108107
list.df = FALSE
109108
if (is.data.frame(X)) {

inst/tests/froll.Rraw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ test(6010.565, frollapply(1:2, list(c("a","a")), length, adaptive=TRUE), error="
12961296
test(6010.566, frollapply(1:2, 2, length, by.column=FALSE), error="frollapply by.column=FALSE requires 'X' argument to be")
12971297
test(6010.567, frollapply(list(1:2, list(c("a","b"))), 2, length, by.column=FALSE), error="frollapply by.column=FALSE got list in 'X' but it is not valid one")
12981298
test(6010.568, frollapply(list(data.frame(x=1:2), data.frame(x=I(list(1:2)))), 2, length, by.column=FALSE), error="not all columns of data.frames/data.tables are atomic")
1299-
test(6010.569, frollapply(list(1:2, NULL), 2, length), error="argument to be atomic or a list of those")
1299+
test(6010.569, frollapply(list(1:2, sum), 2, length), error="argument to be atomic or a list of those")
13001300

13011301
## by.column
13021302
x = data.table(v1=1:5, v2=2:6/2)

0 commit comments

Comments
 (0)