[R] Redirect console to file

From: Vadim Ogranovich <vograno_at_evafunds.com>
Date: Fri 10 Jun 2005 - 14:56:27 EST


Is it possible to redirect the staff that normally goes to the R console window into a file. sink() does this for sdterr and stdout. But I need something that redirects "everything" that appear in the console window
(including the top-level commands).

I want to achieve the same effect as that of the following command under sh:
R < foo.R &> foo.Rt  

only I want the redirection to be activated within the foo.R script.
(The reason being that the name of the file is computed inside foo.R)


        [[alternative HTML version deleted]]

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 Fri Jun 10 15:01:50 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:28 EST