[R] automatic logging of commands

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Aug 21 19:52:06 CEST 2003


All commands are logged in the history file, if your `UNIX' (is that 
really a certified UNIX?) version of R supports history files.

See e.g. ?savehistory.

On Thu, 21 Aug 2003, David R. Bickel wrote:

> Is there an R function that automatically writes all input and output to a
> file? I would at least like it to log all the commands I enter, and to
> preferably also write the standard output to the file as well as to the
> screen. (The ideal would be to write the input to one file and both the
> input and output to another file.) I tried R2HTML for this, but I could not
> get it to work consistently.
> 
> I am using a UNIX version of R:
> > version
>          _         
> platform powerpc-apple-darwin6.6
> arch     powerpc   
> os       darwin6.6 
> system   powerpc, darwin6.6
> status   Patched   
> major    1         
> minor    7.1       
> year     2003      
> month    06        
> day      21        
> language R         

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list