Re: R-beta: auto save

Gregory R. Warnes (warnes@biostat.washington.edu)
Fri, 30 May 1997 08:34:26 -0700 (PDT)


Date: Fri, 30 May 1997 08:34:26 -0700 (PDT)
From: "Gregory R. Warnes" <warnes@biostat.washington.edu>
To: Martin Maechler <maechler@stat.math.ethz.ch>
Subject: Re: R-beta: auto save
In-Reply-To: <9705300700.AA03702@>



On Fri, 30 May 1997, Martin Maechler wrote:

> >>>>> "Rob" == Robert Gentleman <rgentlem@stat.auckland.ac.nz> writes:
>
> Let's call this number  ASI ( = Auto_Save_Interval)
> The question is  how the default value for ASI is to be determined.
> 
> I think that ASI = Inf  for  'BATCH' mode  and when using source(.),
> but  ASI < Inf  even if the user does not have a ~/.Rprofile.

I would like to be able to have ASI!=Inf for 'BATCH' mode so that
intermediate simulation results are not lost...
> 
> A regular   q(ask)   probably should remove  .RAutoSave:
> 			[ if ask='yes', we have a new .RData anyway,
> 			  and otherwise, we wanted to rm(.) things ]
> Then, upon startup, when there's an  .RAutoSave newer than .RData,
> it must have been from a "crash" (non-regular termination of R),
> and the user would be asked if (s)he wanted to use  .RAutoSave instead of
> .RData. 

Also, .RAutoSave should not be deleted until .RData has been written out,
just in case of a crash during the process!

Greg

-------------------------------------------------------------------------------
    Gregory R. Warnes          | It is high time that the ideal of success
warnes@biostat.washington.edu  |  be replaced by the ideal of service.
                               |                       Albert Einstein
-------------------------------------------------------------------------------

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=