Thanks Dan! 6 minute response time? That'll do I guess.
Curious. That's almost exactly what I was doing
x <- array(dim=c(0, 10, 10))
on the basis that the data didn't matter. This crashes with the above error. It is seems to be equivalent, as you would expect, to
x <- array(NA, dim=c(0, 10, 10))
However, your solution
x <- array(0, dim=c(0, 10, 10))
runs just fine. I've no idea what the difference is: as far as I can tell the two objects in R are identical (class, dims, no other attributes).