[R] bug

Geldenhuys, Willie ECI at dwaf-hri.pwv.gov.za
Mon May 3 15:04:17 CEST 1999


-------------------------------------------------
SAMPLE SCRIPT:
x<-rnorm(50)
y<-12*x+30*rnorm(10)
ff<-lm(y~x)
sink("output.txt")
print(ff) # this work give basic coefficients
summary(ff) # should give Rsquare etc
sink()
-------------------------------------------------

Having fitted a curve on a data set, I am trying 
to write all the statistics about the fit to a 
file. 

In Linux, everything works OK, but in Windows NT:

RGUI
source("sink.R")

the summary(ff) does NOT write anything to the 
file. If you execute the same source via:  

RTERM < sink.R everything works OK.
"This universe never did make sense; I suspect it was built on a government contract."
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list