[R] recover history after crash in RGui
Romain Francois
rfrancois at mango-solutions.com
Tue Jun 26 15:33:24 CEST 2007
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
More information about the R-help
mailing list