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

Gavin Simpson gavin.simpson at ucl.ac.uk
Fri Aug 21 10:51:33 CEST 2009

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" file.
> Yeh thats what I was expecting to happen.  I can't actually remember
> but I think it was gedit that I had open although sometimes I use
> kate.  Neither have autorecoverry as I now know.  Both can recover
> (possibly) files that had once been saved but it seems I never saved
> it - nit was literally just a big temporary, editable clipboard!

In gedit, Edit > Preferences, then select the Editor tab. Check the
Autosave files box and set a low-ish number to suit your needs.

By the looks of things, gedit will create backup files, but IIRC this
happens when you save, so the backup contains the version before your
most recent save. It doesn't maintain a recovery file like emacs. So the
autosave option is the best option to avoid large losses if you use



 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk

More information about the R-help mailing list