Re: R-beta: 0.61.1 "if else" parse bug?
Fredrik Glockner (fredrigl@math.uio.no)
14 Jan 1998 09:42:49 +0100
To: <r-help@stat.math.ethz.ch>
Subject: Re: R-beta: 0.61.1 "if else" parse bug?
From: fredrigl@math.uio.no (Fredrik Glockner)
Date: 14 Jan 1998 09:42:49 +0100
In-Reply-To: Ross Ihaka's message of "Wed, 14 Jan 1998 11:05:43 +1300 (NZDT)"
* Ross Ihaka <ihaka@stat.auckland.ac.nz>
|
| Osman Buyukisik writes:
| > I was playing with porting "Hmisc" S-Lib. I am getting parse errors for:
| > if (xxx) yyyy;else zzzz
| >
| > I have to break this into:
| > if(xxx) yyyy
| > else zzzz
| >
| > Is this a known feature?
|
| Hmmm. Bug or feature?
Actually, R is consistent with version 3.3 of S-Plus, if I'm not
mistaken. The above construct with ";" before the "else" would give
parse error in S-Plus 3.3, but _not_ in S-Plus 3.1. So I really feel
that R is doing the right thing here.
Fredrik
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._