Re: [R] PowerCut Killed R - is my code retrievable?

2009-08-21 Thread Gavin Simpson
On Thu, 2009-08-20 at 20:46 +0100, Polwart Calum (County Durham and snip / A half-decent text editor should be saving things to disk as you go. For example, in emacs, if your emacs dies while editing a file then when you restart it, it will notice and offer to restore it from its restore

Re: [R] PowerCut Killed R - is my code retrievable?

2009-08-20 Thread Patrick Connolly
On Thu, 20-Aug-2009 at 12:21AM +0100, Ted Harding wrote: [] | Again, what I routinely do (in Linux) when developing R code is to | have two terminal windows open. In one I am running R. In the | other, beside it, I am editing a file of R code. To run code in R | that has been entered in the

Re: [R] PowerCut Killed R - is my code retrievable?

2009-08-20 Thread Hans-Peter Suter
Also - is there a better way for the future?  I know some people use IDE's but is that for serious programming or for building a small function and tweaking it? What about a version control system to (locally) save the different stages of your script files? (I use git but Subversion (SVN) may

Re: [R] PowerCut Killed R - is my code retrievable?

2009-08-20 Thread Polwart Calum (County Durham and Darlington NHS Foundation Trust)
Rolf Write: If you've been cut-and-pasting from a text editor, then your commands *might* be in the file .Rhistory. Unfortunately this history gets saved only when you exit R (and by default only when you also say ``yes'' to saving the workspace) or if you explicitly savehistory(). Was

[R] PowerCut Killed R - is my code retrievable?

2009-08-19 Thread Polwart Calum (County Durham and Darlington NHS Foundation Trust)
I've been tweaking code for several days on and off in R, cut and pasting in from a text editor (I just leave them open all the time). I think I got something that was usable but then a powersurge tripped the fuses and unfortunately the machine I was working on doesn't have a UPS. Does R hold

Re: [R] PowerCut Killed R - is my code retrievable?

2009-08-19 Thread Rolf Turner
On 20/08/2009, at 9:57 AM, Polwart Calum (County Durham and Darlington NHS Foundation Trust) wrote: I've been tweaking code for several days on and off in R, cut and pasting in from a text editor (I just leave them open all the time). I think I got something that was usable but then a

Re: [R] PowerCut Killed R - is my code retrievable?

2009-08-19 Thread Barry Rowlingson
On Wed, Aug 19, 2009 at 10:57 PM, Polwart Calum (County Durham and Darlington NHS Foundation Trust)calum.polw...@nhs.net wrote: I've been tweaking code for several days on and off in R, cut and pasting in from a text editor (I just leave them open all the time).  I think I got something that

Re: [R] PowerCut Killed R - is my code retrievable?

2009-08-19 Thread Ted Harding
On 19-Aug-09 22:35:01, Barry Rowlingson wrote: On Wed, Aug 19, 2009 at 10:57 PM, Polwart Calum (County Durham and Darlington NHS Foundation Trust)calum.polw...@nhs.net wrote: I've been tweaking code for several days on and off in R, cut and pasting in from a text editor (I just leave them open

Re: [R] PowerCut Killed R - is my code retrievable?

2009-08-19 Thread S Ellison
Polwart Calum (County Durham and Darlington NHS Foundation Trust) calum.polw...@nhs.net 08/19/09 10:57 PM is there a better way for the future? Use a text editor or something specific to R like Tinn-R and _save early and often_. Even if your editor has an autosave. And use savePlot on your