[Rcpp-devel] question re: LdFlags, RcppLdFlags

Dirk Eddelbuettel edd at debian.org
Thu Oct 10 00:43:14 CEST 2013


On 9 October 2013 at 17:14, Dirk Eddelbuettel wrote:
| The other immediate defensive way would be to use NAMESPACE etc on the client
| package and not load Rcpp and Rcpp$foo but just importFrom() etc what is needed.

An 'Imports:' and NAMESPACE entry appears to be all it takes.  RcppGSL also
has its own LdFlags, but with the diff below against what is in svn head I am
passing R CMD check without a hitch on R release and R devel.  

So for dplyrRcpp, if you just want to suppress the warning, simply alter your
DESCRIPTION and NAMESPACE accordingly.

Dirk


edd at max:~/svn/rcpp/pkg$ svn di RcppGSL
Index: RcppGSL/DESCRIPTION
===================================================================
--- RcppGSL/DESCRIPTION	(revision 4542)
+++ RcppGSL/DESCRIPTION	(working copy)
@@ -1,7 +1,7 @@
 Package: RcppGSL
 Type: Package
 Title: Rcpp integration for GNU GSL vectors and matrices
-Version: 0.2.0.2
+Version: 0.2.0.3
 Date: $Date$
 Author: Romain Francois and Dirk Eddelbuettel
 Maintainer: Dirk Eddelbuettel <edd at debian.org>
@@ -27,8 +27,8 @@
   write a similar package against another library.
 License: GPL (>= 2)
 LazyLoad: yes
-Imports: Rcpp (>= 0.9.8)
 Suggests: RUnit, inline, highlight
 LinkingTo: Rcpp
+Imports: Rcpp
 SystemRequirements: GNU GSL
 VignetteBuilder: highlight
Index: RcppGSL/NAMESPACE
===================================================================
--- RcppGSL/NAMESPACE	(revision 4542)
+++ RcppGSL/NAMESPACE	(working copy)
@@ -1,6 +1,7 @@
 useDynLib(RcppGSL)
 
 importFrom(utils,assignInNamespace)
+importFrom(Rcpp,LdFlags)
 export(fastLmPure,
        fastLm)
 S3method(fastLm, default)
edd at max:~/svn/rcpp/pkg$ 



-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list