[R] textConnection

Thomas Lumley tlumley at u.washington.edu
Thu Nov 1 17:39:03 CET 2001

On Thu, 1 Nov 2001, Joel Allen wrote:

> List Members,
> I am using R 1.3.1 for windows and trying to capture the output of some
> summaries using textConnection.  I then want to incorporate the text with
> summary graphics output.  The code below works (captures the output) when it is
> not used in a loop or function.  When placed in a loop or function, the cat
> outputs are captured to 'foo' but the summary outputs are not.  The help
> mentions something about writing to the user's environment but I'm afraid I
> don't know enough to know if this is the problem.  Any help would be
> appreciated.

No, the problem is something else (actually a FAQ)

The summary() function doesn't print any output, which is why nothing is
captured.  To print a summary use print(summary(object)).


Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

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