[Rcpp-devel] Making objects in the C++ "side" persistent

Romain François romain at r-enthusiasts.com
Thu Mar 20 20:03:10 CET 2014


Creating a package does not give you persistence of external pointers across sessions. 

Le 20 mars 2014 à 19:52, Dirk Eddelbuettel <edd at debian.org> a écrit :

> 
> On 20 March 2014 at 12:40, Jiqiang Guo wrote:
> | RStan doesn't do anything to persist any c++ object.  What's done is to save
> | the binary file created using package inline in an R object so it can be reused
> | without recompiling c++ code.  So what is in cxxfunplus might not be related.
> 
> Thanks for the clarification.
> 
> My recommendation is usually to just create a package. We know that works.
> 
> Dirk
> 
> -- 
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com



More information about the Rcpp-devel mailing list