[R] A statement over multiple lines (i.e. the ... feature in Matlab)

Wee-Jin Goh wjgoh at brookes.ac.uk
Thu Oct 5 09:57:54 CEST 2006


On 5 Oct 2006, at 08:39, Robin Hankin wrote:

> Hi  Wee-Jin
>
> you can block out bits of R code with
>
> if(FALSE){
>  <code not executed>
> }
>
> For the line breaking, R deals with incomplete lines by not  
> executing the statement
> until you finish it.  In the function case, it waits for you to  
> close a bracket.
>
>
> If you type:
>
> myFunc(a=3,
> b=5,
> c=6,
> d=7
> )
>
> myFunc() will only execute
> when you close the bracket
>
>
> HTH
>
> rksh
>

Great stuff. That's exactly what I was looking for.

Thanks a bunch :)
Wee-Jin



More information about the R-help mailing list