jim holtman wrote:
>
>
>> if (1 == 1) {print (TRUE)
>>
> + } else {print (FALSE)}
> [1] TRUE
>
>
> so the parse knows that the initial 'if' is not complete on the single line.
>
... and likewise the original code could be rewritten as
f <- { a
+ b
+ c }
vQ
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.