From B.Rowlingson at lancaster.ac.uk  Mon Jan 24 11:56:37 2005
From: B.Rowlingson at lancaster.ac.uk (Barry Rowlingson)
Date: Mon Jan 24 11:56:52 2005
Subject: [Rd] Very Long Expressions
In-Reply-To: <67DCA285A2D7754280D3B8E88EB5480206741E2E@MSGBOSCLB2WIN.DMN1.FMR.COM>
References: <67DCA285A2D7754280D3B8E88EB5480206741E2E@MSGBOSCLB2WIN.DMN1.FMR.COM>
Message-ID: <41F4D465.6030501@lancaster.ac.uk>

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


[Rd] Very Long Expressions
Barry Rowlingson