[Rd] parse error with if else (PR#9551)
Stephanie.Mahevas at ifremer.fr
Stephanie.Mahevas at ifremer.fr
Tue Mar 6 18:15:21 CET 2007
Full_Name: Stephanie MAHEVAS
Version: 2.4.1
OS: Windows NT
Submission from: (NULL) (134.246.55.50)
the two following instructions provide a synthax error :
if ( 5 > 4 ) cat("ok1")
else cat("ok2")
and
if ( 5 > 4 ){ cat("ok1")}
else cat("ok2")
whereas these ones don't
if ( 5 > 4 ) cat("ok1") else cat("ok2")
and
if ( 5 > 4 ){ cat("ok1")
}else cat("ok2")
It looks like a parser problem. If else is not on the same line as if or if the
end of block statement of if } is not paste to else, else does not seem linked
with if
More information about the R-devel
mailing list