Skip to content
Prev 2343 / 10988 Next

[Rcpp-devel] R.e. loadRcppModules

Hi everybody,

Just in case anyone is interested: I managed to come up with a solution that works at least for my case, but unfortunately it doesn't solve much of the general problem:

save:
I found a function in my code where I can assume that the objects are in a final state, and which is called for every object. There I added a call to the serialization function.

load:
As I use the $-wrapper mechanism that is documented in one of the Rcpp vignettes, I added there some code that first checks if the external pointer is <nil>, and if this is the case, then the object is re-created from the serialization (if a serialization is present).

If anyone is interested in the implementation, have a look at the next release of RSNNS, that is about to come soon...

Regards,
Christoph
On 05/26/2011 12:00 PM, rcpp-devel-request at r-forge.wu-wien.ac.at wrote: