Re: [R] recover history after crash in RGui

From: Romain Francois <rfrancois_at_mango-solutions.com>
Date: Tue, 26 Jun 2007 14:33:24 +0100

Sigbert Klinke wrote:
> Hi, is there any possibility to recover the history of executed R code
> in the RGui when it has crashed?
>
> Thanks in advance
>
> Sigbert Klinke
>
Hello,

It might be too much of an overkill, but one possible thing is to use ?taskCallbackManager to save the history after each high level call. Something like:

     h <- taskCallbackManager()
     h$add(function(expr, value, ok, visible) {
                            savehistory()
                            return(TRUE)
                          }, name = "historyHandler")

Cheers,

Romain

-- 
Mango Solutions
data analysis that delivers

Tel:  +44(0) 1249 467 467
Fax:  +44(0) 1249 467 468
Mob:  +44(0) 7813 526 123

______________________________________________
R-help_at_stat.math.ethz.ch 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.
Received on Tue 26 Jun 2007 - 13:39:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 26 Jun 2007 - 14:32:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.