[Rcpp-devel] only LinkingTo: RcppEigen gives compileAttributes warning

Dr Gregory Jefferis jefferis at mrc-lmb.cam.ac.uk
Mon Sep 1 11:42:30 CEST 2014


I have package that depends on Rcpp(Eigen). Originally I imported and 
linked to Rcpp and RcppEigen. However sending the package to the 
winbuilder server, r-devel complains that I only need to link to 

* checking package dependencies ... NOTE
Package in Depends/Imports which should probably only be in LinkingTo: 

But removing RcppEigen from the Imports field gives me the Rcpp warning:

Warning message:
The following packages are referenced using Rcpp::depends attributes 
however are not listed in the Depends, Imports orLinkingTo fields of the 
package DESCRIPTION file: RcppEigen

Now I would certainly choose an Rcpp warning over a CRAN note any day of 
the week, but is this actually an issue? Furthermore it seems to me that 
the compileAttributes warning is spurious – RcppEigen **is** listed in 

I have seen this question on the mailing list:


where the same warning was a side issue and dismissed as irrelevant and 
harmless. In any case, clarification would be welcome.

Many thanks,


PS Code here:


Gregory Jefferis, PhD
Division of Neurobiology
MRC Laboratory of Molecular Biology
Francis Crick Avenue
Cambridge Biomedical Campus
Cambridge, CB2 OQH, UK


More information about the Rcpp-devel mailing list