Re: [Rd] Missing argument error message

2010-01-28 Thread Prof Brian Ripley
But in 2.10.1 patched z=function(x){x*2} z() Error in x * 2 : 'x' is missing [See the posting guide about checking current versions before posting ... My notes say the change was in 2.8.0 and a side effect of something else rather than deliberate.] On Thu, 28 Jan 2010, Barry Rowlingson wr

Re: [Rd] Missing argument error message

2010-01-28 Thread Hrishi Mittal
Thanks for pointing this out Barry. I wonder what led to that change and if there is a way to revert back to the old style. I suspect the reason you didn't find hordes of confused newbies is that newbies don't read error messages. - Hrishi Mittal hrishimit...@gmail.com Try http://prettygr

[Rd] Missing argument error message

2010-01-28 Thread Barry Rowlingson
Back in the days of R 2.6, if you did this, you got this: > z=function(x){x*2} > z() Error in z() : argument "x" is missing, with no default But now in this decade we get (for R 2.9 and 2.10): > z=function(x){x*2} > z() Error in z() : element 1 is empty; the part of the args list of '*' be