[R] Is there any function equivalent to Rgui's File--Save to File (menu bar) command ? (R for Windows)

Prof Brian D Ripley ripley at stats.ox.ac.uk
Sat Apr 28 09:49:09 CEST 2001

On Thu, 26 Apr 2001, Akio Sone wrote:

> Dear R users:
> I would like to know whether or not there is some auxiliary function for the
> Windows Port that emulates Rgui's Fille|Save to File [menu bar] command,
> analogous to flush.console().

That's nothing like what flush.console () does.

> More specifically,  what I want to do is to insert such a function in .Last
> function in .Rprofile to automatically save the contents of the console as
> an ASCII text file whenever I quit Rgui.  Or is there any system parameter
> that represents the contents of the console and can be used as an argument
> of save command?

savehistory().  If you save the workspace the history is saved too.
This is standard (cross-platform) R behaviour.

Note: this saves the input: neither the menu nor the command save the
output in the Rgui console window, and theat is not retained.

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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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