[Rd] Very Long Expressions
B.Rowlingson at lancaster.ac.uk
Mon Jan 24 11:56:37 CET 2005
McGehee, Robert wrote:
>>a <- eval(parse(text = paste(rep(1, 499), collapse = "+")))
Another little investigation shows that if you type:
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...
More information about the R-devel