Re: [Rd] Very Long Expressions

From: Barry Rowlingson <B.Rowlingson_at_lancaster.ac.uk>
Date: Mon 24 Jan 2005 - 21:56:37 EST

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 Received on Mon Jan 24 22:13:00 2005

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:02:37 EST