On 19 February 2014 at 09:53, Gregor Kastner wrote: | To sum up: | | R ----(reuse)----> Rcpp ----(reuse)----> RcppArmadillo | | but | | RcppArmadillo ----(fresh)----> Rcpp ----(reuse)----> R | | Correct?
I think so. And the dreaded '(fresh)' in the second line may be hard to avoid. We need to create R objects managed by R's memory management facilities -- once we return something to R, it treats it like an object it created. That makes external re-use somewhat difficult per my reading of Writing R Extensions. If you can think of another way I'd be all ears. Cheers, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel