Re: [Rcpp-devel] Fwd: CRAN submission growfunctions 0.12

2014-12-08 Thread Dirk Eddelbuettel
On 8 December 2014 at 18:38, terrance savitsky wrote: | Hello Rcpp Developers,  I had earlier forwarded a report that initialization of | arma::SpMat objects through as() in my package generated a memory | management fault in valgrind for my package, growfunctions.   The issue was | sourced (not

[Rcpp-devel] Fwd: CRAN submission growfunctions 0.12

2014-12-08 Thread terrance savitsky
Hello Rcpp Developers, I had earlier forwarded a report that initialization of arma::SpMat objects through as() in my package generated a memory management fault in valgrind for my package, growfunctions. The issue was sourced (not by me) and a fix was incoporated at RcppArmadillo version 0.4.40

Re: [Rcpp-devel] Rcpp and ExternalPtr

2014-12-08 Thread Tim Keitt
On Mon, Dec 8, 2014 at 10:34 AM, Dirk Eddelbuettel wrote: > > On 8 December 2014 at 09:58, Tim Keitt wrote: > | > | > | On Sun, Dec 7, 2014 at 4:52 AM, Dirk Eddelbuettel > wrote: > | > | > | > | What you are after, if I understand it correctly, is (close to) a > common > | and > | we

Re: [Rcpp-devel] Rcpp and ExternalPtr

2014-12-08 Thread Dirk Eddelbuettel
On 8 December 2014 at 09:58, Tim Keitt wrote: | | | On Sun, Dec 7, 2014 at 4:52 AM, Dirk Eddelbuettel wrote: | | | | What you are after, if I understand it correctly, is (close to) a common | and | well studied idiom called 'RAII': Resource Acquisition is Initialization. |

Re: [Rcpp-devel] Rcpp and ExternalPtr

2014-12-08 Thread Tim Keitt
On Sun, Dec 7, 2014 at 4:52 AM, Dirk Eddelbuettel wrote: > > > What you are after, if I understand it correctly, is (close to) a common > and > well studied idiom called 'RAII': Resource Acquisition is Initialization. > Two > quick links, and you will find many more: > > I don't know if this exam