Re: [Rd] Save and serialize

2011-02-07 Thread Prof Brian Ripley
On Mon, 7 Feb 2011, Hadley Wickham wrote: Hi all, Is there any relationship between save and serialize? Do they use the same algorithm? See the R-internals manual: there is more info in the R-devel version, not least because saveRDS() is added to the mix. But basically serialize() and

Re: [Rd] Save and serialize

2011-02-07 Thread Henrik Bengtsson
Also, if it it adds any value to what you are looking for, the output of serialize() also has header information, cf. R-devel thread 'Small inconsistency in serialize() between R versions and implications on digest()' started March 7, 2007:

Re: [Rd] Save and serialize

2011-02-07 Thread Hadley Wickham
Thanks to you both for the information - that's exactly the level of detail I was looking for. I ask because I want to play around with a function to automatically cache expensive operations to disk, in a way that can be lazy loaded on the next run. Hadley On Mon, Feb 7, 2011 at 4:06 PM, Henrik

Re: [Rd] Save and serialize

2011-02-07 Thread Henrik Bengtsson
On Mon, Feb 7, 2011 at 3:15 PM, Hadley Wickham had...@rice.edu wrote: Thanks to you both for the information - that's exactly the level of detail I was looking for.  I ask because I want to play around with a function to automatically cache expensive operations to disk, in a way that can be