[R] How to save play back an entire R session?

2010-12-16 Thread Roy Shimizu
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

Re: [R] How to save play back an entire R session?

2010-12-16 Thread Duncan Murdoch
On 16/12/2010 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

Re: [R] How to save play back an entire R session?

2010-12-16 Thread David Winsemius
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

Re: [R] How to save play back an entire R session?

2010-12-16 Thread Rob Goedman
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,

Re: [R] How to save play back an entire R session?

2010-12-16 Thread Greg Snow
Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Roy Shimizu Sent: Thursday, December 16, 2010 7:44 AM To: r-help@r-project.org Subject: [R] How to save play back

Re: [R] How to save play back an entire R session?

2010-12-16 Thread Roy Shimizu
Thank you all. I experimented with the various suggestions you proposed. Saving the session history is indeed easy (savehistory). The problem is the playback. I didn't find a reliable method. Plus, I now realize that the very idea of playing back a saved session is, in general, a bad one,

Re: [R] How to save play back an entire R session?

2010-12-16 Thread Philipp Pagel
Saving the session history is indeed easy (savehistory). The problem is the playback. I didn't find a reliable method. Well, you could simply source() the .Rhistory file (or the file you saved under some other name). But as you already poitned out - it's better to go with scripts to begin