Detailed description |
I am not sure whether this is a bug in base::rbind or in Matrix, so posting it here first. To reproduce:
n <- 408 # it succeeds for 407
X <- vector("list", n)
set.seed(6860)
for (i in 1:n) {
X[[i]] <- new("dgCMatrix",
i = 0:57L,
p = c(0L, sort(sample(1:58, size = 9L)), 58L),
Dim = c(58L, 10L),
Dimnames = list(NULL, NULL),
x = runif(58L),
factors = list()
)
}
Xb <- do.call("rbind", X)
here is my sessionInfo()
R version 3.2.5 (2016-04-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Server release 6.7 (Santiago)
locale:
[1] LC_CTYPE=en_US LC_NUMERIC=C LC_TIME=en_US LC_COLLATE=en_US LC_MONETARY=en_US LC_MESSAGES=en_US LC_PAPER=en_US LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Matrix_1.2-5
loaded via a namespace (and not attached):
[1] grid_3.2.5 lattice_0.20-23
|
|