This is where a good editor with proper syntactic indentation is helpful.
The first example is Terry's function as indented by ESS.  It is very
clear that there are two lines with parallel indentation.

zed <- function(x,y,z) {
  x + y
  +z;
}

The second function is modified to place the "+" on the first
line as the indicator of continuation.  The second line is indented
by ESS to show that it is a continuation line.
zedc <- function(x,y,z) {
  x + y +
    z;
}
Rich

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to