<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>