Skip to content

Commit 5c30c68

Browse files
committed
codecov
1 parent 5d8e229 commit 5c30c68

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

R/frollapply.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ simplifylist = function(x, fill, ansmask) {
6161
## name fill if all ans have same names
6262
if (
6363
ans.ut != "list" &&
64+
length(fill) == length(ans1) &&
6465
is.null(names(fill)) &&
6566
!is.null(names(ans1)) && ## simplifylist(list(NA, c(1,2), c(1,2)), NA, ansmask=c(F,T,T))
6667
len_unq(vapply_1b(x[ansmask], any_NA_names, use.names=FALSE)) <= 1L && ## simplifylist(list(NA, c(a=1,b=2), setNames(c(1, 2), c(NA,"b"))), NA, ansmask=c(F,T,T))

inst/tests/froll.Rraw

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,6 +1802,8 @@ test(6010.756, frollapply(1:3, 2, fill=9, function(i) if (i[1L]==1L) 1L else NA)
18021802
test(6010.757, frollapply(1:3, 2, fill=9, function(i) if (i[1L]==1L) 1L else 2L), c(9L,1L,2L)) ## matches fun answer
18031803
test(6010.758, frollapply(1:3, 2, fill=9L, function(i) if (i[1L]==1L) 1 else FALSE), list(9L,1,FALSE))
18041804
test(6010.759, frollapply(1:3, 2, fill=0, function(i) TRUE), list(0,TRUE,TRUE))
1805+
test(6010.760, frollapply(1:3, 2, function(x) c(a=x), fill=0), list(0L, c(a1=1L,a2=2L), c(a1=2L,a2=3L)))
1806+
test(6010.7601, frollapply(1:3, 2, function(x) c(a=x), fill=c(0,0)), data.table(a1=0:2, a2=c(0L,2:3)))
18051807

18061808
#### mutlithreading throttle caveats from manual: copy, fixing .internal.selfref
18071809
use.fork = .Platform$OS.type!="windows" && getDTthreads()>1L

0 commit comments

Comments
 (0)