Roy, In addition to previous responses, another way of achieving this is to only work from scripts. I rarely type anything directly into R, just edit scripts in an editor and then execute the entire script (or parts of the script) from within the editor.
This way of working provides backup, e.g. if something goes wrong in R. Typing directly into the R session is still useful to quickly try something or help questions. Regards, Rob On Dec 16, 2010, at 7:06 AM, David Winsemius wrote: > > On Dec 16, 2010, at 9:43 AM, Roy Shimizu wrote: > >> I know that at the end of an R session I'm given the option to save >> the current *state* of the session. >> >> But I would like to save the entire sequence of inputs that took place >> during the session, so that I can play them back later, and not only >> be left in the same state I was at the time of saving the session, but >> be able to see the entire history of the session (inputs and outputs). >> (This is somewhat reminiscent of what can be done with Mathematica >> notebooks, although not exactly, since, with Mathematica notebooks, >> one doesn't necessarily save the original inputs.) >> >> Does anyone know how to achieve this? >> > > ?history > >> Thanks! >> >> Roy >> >> ______________________________________________ >> R-help@r-project.org 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. > > David Winsemius, MD > West Hartford, CT > > ______________________________________________ > R-help@r-project.org 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. ______________________________________________ R-help@r-project.org 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.