[R] Splitting lines in R script

Steven Yen syen04 at gmail.com
Mon Aug 3 06:05:24 CEST 2015


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)
    -pbivnorm(aa,dd,tau)-pbivnorm(bb,cc,tau)

Is there a general rule of thumb for line breaks? Thanks you.

	[[alternative HTML version deleted]]



More information about the R-help mailing list