[Rcpp-devel] Recommended procedure to depend on Rcpp
Dominick Samperi
djsamperi at gmail.com
Wed Nov 17 17:43:29 CET 2010
In the GNU make case it is better to use ':=' instead of '=' because in the
latter case there
can be surprising side-effects (the RHS is evaluated on every use).
On Wed, Nov 17, 2010 at 11:36 AM, Romain Francois
<romain at r-enthusiasts.com>wrote:
> Dear package maintainers and members of the Rcpp-devel mailing list,
>
> Following the discussion that was trigerred by the (most welcome) release
> of RSNNS, the cran maintainers have advised us about what they consider the
> best way for a package to declare it depends on Rcpp.
>
> The documentation will be updated before the next Rcpp release, but here
> are the main points.
>
> - In the DESCRIPTION file, you need at least these two lines:
>
> Depends: Rcpp
> LinkingTo: Rcpp
>
>
>
> - In the Makevars file, you need this line:
>
> PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
>
> So no requirement on GNU make is needed as the use of backticks supported
> to be portable.
>
>
>
> - In the Makevars.win (where we can assume GNU make), you need this line:
>
> PKG_LIBS = $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e
> "Rcpp:::LdFlags()")
>
>
> The documentation will include as usual the alternative version that uses
> configure and configure.win files.
>
>
>
> Those advices are from the CRAN maintainers, and we are very thankful.
>
> Please update your packages to implement this, there is no need to wait for
> another release of Rcpp, and it will only take a few minutes. There are for
> example a few packages that are still not using LinkingTo: Rcpp
> (bifactorial, cxxPack, mvabund, phylobase, sdcTable, pcaMethods)
>
>
>
> Best regards,
>
> Romain
>
>
> --
> Romain Francois
> Professional R Enthusiast
> +33(0) 6 28 91 30 30
> http://romainfrancois.blog.free.fr
> |- http://bit.ly/9VOd3l : ZAT! 2010
> |- http://bit.ly/c6DzuX : Impressionnism with R
> `- http://bit.ly/czHPM7 : Rcpp Google tech talk on youtube
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101117/5dad8be1/attachment.htm>
More information about the Rcpp-devel
mailing list