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

2014-08-09 Thread Kevin Ushey
Hi All, Just to confirm -- we can trigger this error with arbitrary integer sparse matrices, e.g. (running with ASAN): library(Rcpp) cppFunction("arma::sp_mat asSpMat(SEXP S) { return as(S); }", depends="RcppArmadillo") m <- Matrix(sample(0:5, 100, TRUE), 20, 5, sparse = TRUE) asSpMat(m) So it

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

2014-08-09 Thread Dirk Eddelbuettel
Hi Terrance, On 9 August 2014 at 20:05, terrance savitsky wrote: | darn.  i R CMD check'd --as-cran under R-devel and also loaded the minimal | package, sparseList_1.1, the example and test run without issue​ | [icon_10_ge] sparseList_1.1.tar.gz Read the section "4.3 Checking memory access" of W

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

2014-08-09 Thread terrance savitsky
darn. i R CMD check'd --as-cran under R-devel and also loaded the minimal package, sparseList_1.1, the example and test run without issue​ sparseList_1.1.tar.gz ​. So I'm stumped why the test is

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

2014-08-09 Thread Dirk Eddelbuettel
Terrance, On 9 August 2014 at 18:23, terrance savitsky wrote: | Hi Dirk, The revised version of this toy package, sparseList, does exactly what | you request.  I've included a data set that is of the same construction (of | dgCMatrix elements from R::Matrix wrapped into a list object) and have a

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

2014-08-09 Thread terrance savitsky
Hi Dirk, The revised version of this toy package, sparseList, does exactly what you request. I've included a data set that is of the same construction (of dgCMatrix elements from R::Matrix wrapped into a list object) and have added both an example and test that call this data. The package is mini

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

2014-08-09 Thread Dirk Eddelbuettel
Hi Terrance, On 9 August 2014 at 16:58, terrance savitsky wrote: | Hi Guys,  |   | I embed a data list object of dgCMatrix elements (produced in the same manner | as used in package, growfunctions) in an .RData file located in the sparseList | \data folder. I'm not sure what script and data ASAN

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

2014-08-09 Thread terrance savitsky
Hi Guys, I embed a data list object of dgCMatrix elements (produced in the same manner as used in package, growfunctions) in an .RData file located in the sparseList \data folder. I'm not sure what script and data ASAN uses to conduct the memory check. I'm guessing the package examples are run.

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

2014-08-09 Thread Kevin Ushey
Hi Terrance, Can you please try to construct a reproducible example based on the (tagged, potentially offending) line of code -- that is, #4 0x7f79b6541df0 in IGMRFDPMIX /data/gannet/ripley/R/packages/tests-49x/growfunctions/src/dpmix.cpp:63 which has the line: C(k,0) = as(Cr[k

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

2014-08-09 Thread Dirk Eddelbuettel
On 9 August 2014 at 14:31, terrance savitsky wrote: | Dirk,  Thanks much for taking the time to investigate this issue.  I've created | a package (sparseList_1.0.tar.gz) with a minimal example of what writing from a | list of dgCMatrix matrices at the R layer to a field.  I had intended | to ins

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

2014-08-09 Thread terrance savitsky
Dirk, Thanks much for taking the time to investigate this issue. I've created a package (sparseList_1.0.tar.gz) with a minimal example of what writing from a list of dgCMatrix matrices at the R layer to a field. I had intended to install boot2docker and use load your R-devel set-up to a containe

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

2014-08-09 Thread Dirk Eddelbuettel
Terrance, So I took a look with one of the prebuilt versions of R using the Docker container I prepare (see the blog / sanitizers write-up I linked to) as I realized that we had a Rcpp Gallery post similar to what that as<> conversion does. And no issue with that code. >From a brief look at

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

2014-08-09 Thread Dirk Eddelbuettel
On 9 August 2014 at 07:30, terrance savitsky wrote: | Hi Rcpp developers, I recently added a new package (growfunctions) to | CRAN (http://cran.r-project.org/web/packages/growfunctions/index.html) [ Congrats. I actually saw that via CRANberries, and noted it on the page with CRAN users: http:/

[Rcpp-devel] Fwd: CRAN submission growfunctions 0.1

2014-08-09 Thread terrance savitsky
Hi Rcpp developers, I recently added a new package (growfunctions) to CRAN (http://cran.r-project.org/web/packages/growfunctions/index.html) that uses Rcpp and RcppArmadillo. The attached links report a memory-access error associated to the as<> wrapper for SpMat objects (that I use in the file '