Re: [R] array(list(),c(2,5)) gives error in R 1.8.1

2004-01-14 Thread Tony Plate
I confirmed this -- array(list(), c(2,2)) works in R 1.6.2 and R 1.7.1, but not in R 1.8.0. This appears to be due to a change in array(): rep(data, t1) was changed to rep.int(data, t1). When data=list(), t1==Inf, and rep(data, t1) returns list(), while rep.int(data, t1) gives an error. Here

[R] array(list(),c(2,5)) gives error in R 1.8.1

2004-01-14 Thread Christoph Lehmann
Hi In R 1.7 the following worked fine: > array(list(),c(2,5)) [,1] [,2] [,3] [,4] [,5] [1,] NULL NULL NULL NULL NULL [2,] NULL NULL NULL NULL NULL now in R 1.8.1 I get the error: Error in rep.int(data, t1) : invalid number of copies in "rep" In addition: Warning message: NAs introduced by