[R] Saving results from Linux command line

Muenchen, Robert A (Bob) muenchen at utk.edu
Fri Aug 24 22:38:45 CEST 2007


As the help files says, "...like the Unix program tee". I thought sink
only diverted to a file. Thanks! -Bob

> -----Original Message-----
> From: Thomas Lumley [mailto:tlumley at u.washington.edu]
> Sent: Friday, August 24, 2007 2:17 PM
> To: Muenchen, Robert A (Bob)
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] Saving results from Linux command line
> 
> 
> There could still be functions that divert a copy of all the output to
> a
> file, for example.  And indeed there are.
> 
> sink("transcript.txt", split=TRUE)
> 
>  	-thomas
> 
> On Fri, 24 Aug 2007, Muenchen, Robert A (Bob) wrote:
> 
> > I looked long and hard for that information. Thank you VERY much! -
> Bob
> >
> >> -----Original Message-----
> >> From: Richard M. Heiberger [mailto:rmh at temple.edu]
> >> Sent: Friday, August 24, 2007 1:52 PM
> >> To: Muenchen, Robert A (Bob); r-help at stat.math.ethz.ch
> >> Subject: Re: [R] Saving results from Linux command line
> >>
> >> There can't be functions in the R language to save the transcript
> >> of a session.  In this respect R is a filter.  It takes an input
> >> stream of text and returns an output stream of text.  R doesn't
> >> remember
> >> the streams.  The Windows RGui remembers them.  The ESS *R* buffer
> >> remembers
> >> them.  Any terminal emulator could in principle remember them.
> >> R itself can't.
> >
> > ______________________________________________
> > R-help at 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
> > and provide commented, minimal, self-contained, reproducible code.
> >
> 
> Thomas Lumley			Assoc. Professor, Biostatistics
> tlumley at u.washington.edu	University of Washington, Seattle



More information about the R-help mailing list