Re: [R] Splitting lines in R script

2015-08-03 Thread Jim Lemon
Hi Steven, In general, the command line must be incomplete (in your case, a trailing hyphen) for the interpreter to take the next line as a continuation. Jim On Sun, Aug 2, 2015 at 9:05 PM, Steven Yen sye...@gmail.com wrote: I have a line containing summation of four components. # This

[R] Splitting lines in R script

2015-08-02 Thread Steven Yen
I have a line containing summation of four components. # This works OK: p-pbivnorm(bb,dd,tau)+pbivnorm(aa,cc,tau)- -pbivnorm(aa,dd,tau)-pbivnorm(bb,cc,tau) # This produces unpredicted results without warning: p-pbivnorm(bb,dd,tau)+pbivnorm(aa,cc,tau)

Re: [R] Splitting lines in R script

2015-08-02 Thread Peter Langfelder
R does not need a semicolon or other character to terminate a command; if a line can be interpreted as a complete command, it will (first line in your second example). Also note that the first example may not produce what you want (if your second example is any indication) - the result of