[R] how to use sink.number()

From: Michael S <michael_shen_at_hotmail.com>
Date: Mon 18 Apr 2005 - 17:30:55 EST


Dear All R-helper,
my question is how to use sink.number.
if I want to label the output was sinked by sink function how should I do ? example:
zz <- file("c:\\sinktest1.txt",open="wt") sink(zz)
g<- 1:10
cat(g,"\n")
f<-list(1:100)
h<-capture.output(f)
cat(h)
sink()

I want there are marks in "sinktest1.txt" files, let me know the number of output I get(in this example, there should be 2 mark or number ,becuase I using two cat function)

thanks
Michael



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Apr 18 17:38:52 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:15 EST