R-beta: 0.61.1 "if else" parse bug?
    Fredrik Glockner 
    fredrigl at math.uio.no
       
    Wed Jan 14 09:42:49 CET 1998
    
    
  
* Ross Ihaka <ihaka at 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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
    
    
More information about the R-help
mailing list