[R] Seeming failure of options(width=60)

John C Nash nashjc at uottawa.ca
Mon Mar 26 04:17:03 CEST 2012


The following example gives output with a line length of 103 on my system. It is causing a
nuisance in creating a vignette. Is there something other than e.g., options(width=60) I
need to set? The Sweave FAQ suggests this should work.

options(width=60)
pastured <- data.frame(
time=c(9, 14, 21, 28, 42, 57, 63, 70, 79),
yield= c(8.93, 10.8, 18.59, 22.33, 39.35,
         56.11, 61.73, 64.62, 67.08))
regmod<-"yield ~ t1 - t2*exp(-exp(t3+t4*log(time)))"
huetstart<-c(t1=70, t2=60, t3=0, t4=1)
anlsx<-try(nls(regmod, start=huetstart, trace=TRUE, data=pastured))
print(anlsx)


John Nash



More information about the R-help mailing list