Skip to content
Prev 2329 / 10988 Next

[Rcpp-devel] R CMD BATCH - segfault (was: Create and access several instances of a C++ class from R)

On 20.05.2011, at 17:26, Douglas Bates wrote:

        
On Fri, May 20, 2011 at 5:01 AM, <soeren.vogel at uzh.ch> wrote:

            
Hello

Just to get that clearly: Whatever I do with a C++ class in one session will be lost after quit? So, that would mean, to save my current work (done with an Rcpp module class) requires me to write a representation of the c++ object in R, which can be saved and which, after reload, rebuilds the last state of R affairs? Guessing that, my conclusion would be to not expose the Rcpp module class, rather to build an R class which rests upon the C++ stuff and holds the important information. That in turn would mean almost double use of memory? Or how would you recommend to work around?

Thanks
S?ren + Carlo