From rpeng at jhsph.edu  Tue Jan  3 14:30:54 2006
From: rpeng at jhsph.edu (Roger D. Peng)
Date: Tue, 03 Jan 2006 08:30:54 -0500
Subject: [Rd] checkpointing
In-Reply-To: <1136241618.5636.10.camel@iron.psg.net>
References: <1136241618.5636.10.camel@iron.psg.net>
Message-ID: <43BA7C8E.5020109@jhsph.edu>

One possibility is to write in some checkpointing into your objective function, 
such as saving the current parameter values via 'save()' or 'dput()'.

-roger

Ross Boylan wrote:
> I would like to checkpoint some of my calculations in R, specifically
> those using optim.  As far as I can tell, R doesn't have this facility,
> and there seems to have been little discussion of it.
> 
> checkpointing is saving enough of the current state so that work can
> resume where things were left off if, to take my own example, the system
> crashes after 8 days of calculation.
> 
> My thought is that this could be added as an option to optim as one of
> the control parameters.
> 
> I thought I'd check here to see if anyone is aware of any work in this
> area or has any thoughts about how to proceed.  In particular, is save a
> reasonable way to save a few variables to disk?  I could also make the
> code available when/if I get it working.

-- 
Roger D. Peng  |  http://www.biostat.jhsph.edu/~rpeng/



[Rd] checkpointing
Roger D. Peng