McGehee, Robert wrote:

a <- eval(parse(text = paste(rep(1, 499), collapse = "+")))

Another little investigation shows that if you type:

 1+1+......+1

at the > prompt (with over 498 '+1's) both R1.8.1 and R2.0.0 produce an error message, so it would appear to be something specific to the eval() function in R 2.0.x suppressing the error message.

You can increase the limit by setting options()$expressions - default is 500 here. help(options) says you can go up to 100000, but that doesn't fix the fundamental problem...

 Time for the gurus to sort this one out...

Baz

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to