Re: [R] Question about object permanence/marshalling

2011-08-25 Thread jim holtman
~~ > All right, but apart from the sanitation, the medicine, education, wine, > public order, irrigation, roads, a fresh water system, and public health, > what have the Romans ever done for us? > ~~~~~~ > > From: jim holtman > To: Albert-Jan R

Re: [R] Question about object permanence/marshalling

2011-08-25 Thread Albert-Jan Roskam
ling List >Sent: Thursday, August 25, 2011 4:07 PM >Subject: Re: [R] Question about object permanence/marshalling > >The problem I think is in your unmarshal.  'load' will load the object >into the local environment, not the global.  You have to explicitly >return it, that

Re: [R] Question about object permanence/marshalling

2011-08-25 Thread jim holtman
The problem I think is in your unmarshal. 'load' will load the object into the local environment, not the global. You have to explicitly return it, that means you have to know the name that its was 'save'd by; > unmarshal <- function(xdr) { >     object <- strsplit(strsplit(xdr, "\\.")[[1]][[1]]

[R] Question about object permanence/marshalling

2011-08-25 Thread Albert-Jan Roskam
Hello,   I am trying to write some code that dumps R objects to the harddisk in a binary format so they can be quickly re-used later. Goal is to save time. The objects may be quite large (e.g. classes for a GUI). I was thinking that save() and load() would be suitable for this (until now I only