Re: [R] R parser for If-else

2009-02-25 Thread Rainer M Krug
On Wed, Feb 25, 2009 at 10:03 AM, Martin Maechler wrote: >> "D" == Dani   >>     on Tue, 24 Feb 2009 14:09:36 -0800 writes: > >    D> Hi list, >    D> I don't know if somebody has spent a lot of time debugging strange >    D> problems with if else positioning - the parser seems to recogniz

Re: [R] R parser for If-else

2009-02-25 Thread Martin Maechler
> "WK" == Wacek Kusnierczyk > on Wed, 25 Feb 2009 09:46:19 +0100 writes: WK> Martin Maechler wrote: >> >> I think this is FAQ (or should become one): >> >> ?if [the help page you really should read before spending too >> much time or even post to R-help]

Re: [R] R parser for If-else

2009-02-25 Thread Wacek Kusnierczyk
Martin Maechler wrote: > > I think this is FAQ (or should become one): > > ?if [the help page you really should read before spending too > much time or even post to R-help] > ?if won't parse completely, you need ?'if' ;) vQ __ R-he

Re: [R] R parser for If-else

2009-02-25 Thread Robin Hankin
I too have had many problems with if-else. My solution is to always always always use the line "} else {" in any if-else construction. This guarantees that there won't be problems of the sort discussed here. HTH rksh Martin Maechler wrote: "D" == Dani on Tue, 24 Feb 2009 14:09:36 -

Re: [R] R parser for If-else

2009-02-25 Thread Martin Maechler
> "D" == Dani > on Tue, 24 Feb 2009 14:09:36 -0800 writes: D> Hi list, D> I don't know if somebody has spent a lot of time debugging strange D> problems with if else positioning - the parser seems to recognize only D> the syntax bellow - this is the only way of making

[R] R parser for If-else

2009-02-24 Thread Dani
Hi list, I don't know if somebody has spent a lot of time debugging strange problems with if else positioning - the parser seems to recognize only the syntax bellow - this is the only way of making these pieces of code to work. As far as i'm concerned, no examples were available (it would be so a