On 1 September 2014 at 10:42, Dr Gregory Jefferis wrote: | 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 | RcppEigen: | | * checking package dependencies ... NOTE | Package in Depends/Imports which should probably only be in LinkingTo: | 'RcppEigen'
Yes, I suspect that is the the same issue that was reported for RcppArmadillo last week. I fixed it there (in the GitHub version) but want to make one more change to skeleton build. Once done I carry it over to RcppEigen. | 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 | LinkingTo. You need both LinkingTo: statements as they give us the -I flags needed for compilation. These days you need only one Import: statement to instantiate Rcpp. | I have seen this question on the mailing list: | | http://comments.gmane.org/gmane.comp.lang.r.rcpp/7181 | | where the same warning was a side issue and dismissed as irrelevant and | harmless. In any case, clarification would be welcome. Yes. Mostly a nuisance, but harmless. Dirk | Many thanks, | | Greg. | | PS Code here: | | https://github.com/jefferis/nabor/commit/5c3289c77e0335599ef5668344484d1b4029ed7f | | | -- | Gregory Jefferis, PhD | Division of Neurobiology | MRC Laboratory of Molecular Biology | Francis Crick Avenue | Cambridge Biomedical Campus | Cambridge, CB2 OQH, UK | | http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis | http://jefferislab.org | http://flybrain.stanford.edu | _______________________________________________ | Rcpp-devel mailing list | Rcpp-devel@lists.r-forge.r-project.org | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel