[Rcpp-devel] RcppEigen.package.skeleton r cmd check warning

Edward Roualdes edward.roualdes at gmail.com
Wed May 7 18:05:04 CEST 2014


I've narrowed down this R CMD CHECK warning all the way from my code (
https://github.com/roualdes/btf) 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.

> library(RcppEigen)
> RcppEigen.package.skeleton('abc')
Warning message:

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

> sessionInfo()
R version 3.1.0 (2014-04-10)
Platform: x86_64-apple-darwin13.1.0 (64-bit)

[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] Rcpp_0.11.1         RcppEigen_0.

loaded via a namespace (and not attached):
[1] compiler_3.1.0  grid_3.1.0      lattice_0.20-29 Matrix_1.1-3
[5] tools_3.1.0

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.

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

A similar problem comes up with the following code as the only file in a
package's src/ directory.

#include <RcppEigen.h>
// [[Rcpp::depends(RcppEigen)]]
// [[Rcpp::export]]
Rcpp::List len(const Eigen::VectorXd& y) {
  int n = y.size();
  return Rcpp::List::create(Rcpp::Named("n") = n);

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.

With much appreciation,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140507/12f5fa37/attachment-0001.html>

More information about the Rcpp-devel mailing list