Le 10/10/13 00:43, Dirk Eddelbuettel a écrit :
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.
RcppGSL does not export its LdFlags, if it did, you'd see the warning
when you load it.
So we would use Rcpp::LdFlags and RcppGSL:::LdFlags. <nonsense/>
Why would you import Rcpp's LdFlags inside RcppGSL's namespace, you
don't use it there.
So for dplyrRcpp, if you just want to suppress the warning, simply alter your
DESCRIPTION and NAMESPACE accordingly.
Does not cut it sorry.
Dirk
edd@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 <e...@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@max:~/svn/rcpp/pkg$
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
_______________________________________________
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