[Rcpp-devel] RcppEigen.package.skeleton r cmd check warning
Dirk Eddelbuettel
edd at debian.org
Wed May 7 20:32:49 CEST 2014
Edward,
On 7 May 2014 at 12:05, Edward Roualdes wrote:
| 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.
Sorry, I think I read your email the wrong way in my first reply.
| > 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
That should be harmless. You did cut off the messages showing that we DO
added RcppEigen to Imports and LinkingTo.
For the other warning, I see these chiefly as failures of the default
package.skeleton() we wrap around: incomplete help pages etc pp, incomplete
sections in help pages.
The resulted page builds / checks for me (after fixing the one .Rd file's
examples section).
I too find it highly annoying that package.skeleton() creates packages with
so many warnings. It would be worth replacing / enhancing, and if I have time
and nothing more pressing to work on I may.
| As expected, installing $ R CMD INSTALL ~/Desktop/abc and functionality work
| just fine. But, running $ R CMD BUILD ~/Desktop/abc/ && R CMD CHECK ~/
Right.
| 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’
Now that would be a real warning bug, and I don't have it with gcc / g++ 4.8.
| 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);
| }
As I showed you, that too builds without issue for me.
| 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.
I appreciate the offer for help. Right now I don't have a reproducible
problem for you to work on (apart from creating a new / better
package.skeleton() or a post process for it...)
Cheers, Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list