[R] how to write text into a file

Martin Maechler maechler at stat.math.ethz.ch
Fri May 9 14:31:10 CEST 2003


>>>>> "Ted" == Ted Harding <Ted.Harding at nessie.mcc.ac.uk>
>>>>>     on Fri, 09 May 2003 09:34:39 +0100 (BST) writes:

    Ted> On 09-May-03 Thomas Lumley wrote:

    .........

    >> A fairly minor adjustment to capture.output(), to allow
    >> it to take an arbitrary connection for its `file'
    >> argument works very nicely, and one can then do eg
    >> capture.output(example(glm), file=pipe("enscript -o
    >> tempout.ps","w"))

    Ted> Hmm -- where does one find capture.output()? Doesn't
    Ted> seem to show up in any libraries I have installed.

It's one of the many  "NEW FEATURES" (mentioned in "NEWS") of R version 1.7.0

Martin




More information about the R-help mailing list