[R] slightly inconsistent behavior

ivo welch
Tue, 26 Dec 2006 18:53:54 -0000

dear R experts:

This is just a minor, minor nuisance, but I thought I would point it out:

> dataset <- read.table(file=pipe(cmdline), header =T,
+                   na.strings=c("NaN",
"C","I","M", "E"), sep=",",
as.is=T, nrows=99999999);
Error: cannot allocate vector of size 781249 Kb

If I extend nrows by a few more 9's, the error goes away.  Similarly,
if I use much fewer observations, the error goes away.

regards,

/iaw