<div dir="ltr">All,<div><div><br></div><div>I've narrowed down this R CMD CHECK warning all the way from my code (<a href="https://github.com/roualdes/btf">https://github.com/roualdes/btf</a>) to RcppEigen.package.skeleton() to an even smaller example.  Any thoughts / suggestsions to get rid of this warning which will keep such packages off of CRAN are much appreciated.  Below are the steps to recreate the warning and some details along the way.</div>


<div><br></div><div>> library(RcppEigen)</div><div>> RcppEigen.package.skeleton('abc')</div><div>...</div><div>Warning message:                                                                            </div>


<div>The following packages are referenced using Rcpp::depends attributes however are not listed in the Depends and LinkingTo fields of the package DESCRIPTION file: RcppEigen </div><div><br></div><div>> sessionInfo()</div>


<div>R version 3.1.0 (2014-04-10)</div><div>Platform: x86_64-apple-darwin13.1.0 (64-bit)</div><div><br></div><div>locale:</div><div>[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8</div><div><br></div><div>


attached base packages:</div><div>[1] stats     graphics  grDevices utils     datasets  methods   base     </div><div><br></div><div>other attached packages:</div><div>[1] Rcpp_0.11.1         RcppEigen_0.3.2.1.2</div><div>


<br></div><div>loaded via a namespace (and not attached):</div><div>[1] compiler_3.1.0  grid_3.1.0      lattice_0.20-29 Matrix_1.1-3   </div><div>[5] tools_3.1.0    </div><div><br></div><div>As expected, installing $ R CMD INSTALL ~/Desktop/abc and functionality work just fine.  But, running $ R CMD BUILD ~/Desktop/abc/ && R CMD CHECK ~/abc_1.0.tar.gz provides a number of easily fixed warnings, and then the following of which I fail to understand.</div>


<div><br></div><div>* checking compiled code ... WARNING</div><div>File ‘/Users/easy-e/Desktop/abc.Rcheck/abc/libs/abc.so’:<br></div><div>  Found ‘___assert_rtn’, possibly from ‘assert’ (C)</div><div>    Objects: ‘RcppExports.o’, ‘rcppeigen_hello_world.o’</div>

<div><br></div>
<div>A similar problem comes up with the following code as the only file in a package's src/ directory.</div><div><br></div><div>#include <RcppEigen.h></div>
<div>// [[Rcpp::depends(RcppEigen)]]</div><div>// [[Rcpp::export]]</div><div>Rcpp::List len(const Eigen::VectorXd& y) {</div><div>  int n = y.size();</div><div>  return Rcpp::List::create(Rcpp::Named("n") = n);</div>


<div>}</div><div><br></div><div>An attempt to learn from other packages ( sparseLTSEigen / lme4) was made, but I found no such luck. Please let me know what I can do to help.</div><div><br></div><div>With much appreciation,</div>

<div>Edward</div></div></div>