Re: [Rd] serializing recordedplot object

From: Jeroen Ooms <>
Date: Tue, 10 Jan 2012 13:12:13 -0800

On Tue, Jan 10, 2012 at 6:17 AM, Simon Urbanek <> wrote:
> Unfortunately R doesn't provide a way for this. Without changes to unserialization (on the wishlist for a few years now, but not easy to design) the best you can do is to check the native symbols for NULL pointers on usage and then re-fetch - that's something that could be done reasonably easily, although it's still a hack ...

Hmm that concerns me a bit. I make heavy use of saveRDS and readRDS in my framework and have assumed that for all practical purposes most objects can be saved to disk and loaded later on without problems. Are there any other types of objects that are not being serialized-unserialized to a state where they are functional again?

name="0060qlink3"><a name="0060qlink3">In the case of the NativeSymbolInfo object, it should not be too hard to add an optional feature to unserialize which reloads the package and NativeSymbolInfo when it runs into nullpointers during unserialization? I am currently doing this manually after the unserialization, but that introduces quite some overhead.


Jeroen mailing list Received on Tue 10 Jan 2012 - 21:50:07 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 10 Jan 2012 - 23:40:07 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive