Re: [Rcpp-devel] Rcpp and ExternalPtr

2014-12-07 Thread Dirk Eddelbuettel
On 6 December 2014 at 21:41, Jeroen Ooms wrote: | On Fri, Dec 5, 2014 at 12:54 AM, Romain François | wrote: | > | > You are looking for XPtr. | | Thanks guys, exactly what I needed indeed. One follow-up question: | | Is there a way to use the XPtr object to prevent the c++ object it | points to

Re: [Rcpp-devel] Returning an arma vec

2014-12-07 Thread Dirk Eddelbuettel
On 5 December 2014 at 11:38, Martyn Plummer wrote: | I had something simpler in mind. I'll send a pull request when I've | finished testing (This package has many dependencies!) I am truly impressed that you test before submitting a pull request, and greatly appreciate it. Looking forward to wha

Re: [Rcpp-devel] Rcpp and ExternalPtr

2014-12-07 Thread Dirk Eddelbuettel
On 5 December 2014 at 05:37, JJ Allaire wrote: | I think the XPtr class is what you are looking for: Indeed. XPtr is perfect for managing external resources. | http://www.r-bloggers.com/external-pointers-with-rcpp/ And there are four Rcpp Gallery posts highlighted as a result of a you search