In the GNU make case it is better to use &#39;:=&#39; instead of &#39;=&#39; because in the latter case there<br>can be surprising side-effects (the RHS is evaluated on every use).<br><br><div class="gmail_quote">On Wed, Nov 17, 2010 at 11:36 AM, Romain Francois <span dir="ltr">&lt;<a href="mailto:romain@r-enthusiasts.com">romain@r-enthusiasts.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Dear package maintainers and members of the Rcpp-devel mailing list,<br>
<br>
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.<br>
<br>
The documentation will be updated before the next Rcpp release, but here are the main points.<br>
<br>
- In the DESCRIPTION file, you need at least these two lines:<br>
<br>
Depends: Rcpp<br>
LinkingTo: Rcpp<br>
<br>
<br>
<br>
- In the Makevars file, you need this line:<br>
<br>
PKG_LIBS = `$(R_HOME)/bin/Rscript -e &quot;Rcpp:::LdFlags()&quot;`<br>
<br>
So no requirement on GNU make is needed as the use of backticks supported to be portable.<br>
<br>
<br>
<br>
- In the Makevars.win (where we can assume GNU make), you need this line:<br>
<br>
PKG_LIBS = $(shell &quot;${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe&quot; -e &quot;Rcpp:::LdFlags()&quot;)<br>
<br>
<br>
 The documentation will include as usual the alternative version that uses configure and configure.win files.<br>
<br>
<br>
<br>
Those advices are from the CRAN maintainers, and we are very thankful.<br>
<br>
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<br>
(bifactorial, cxxPack, mvabund, phylobase, sdcTable, pcaMethods)<br>
<br>
<br>
<br>
Best regards,<br>
<br>
Romain<br><font color="#888888">
<br>
<br>
-- <br>
Romain Francois<br>
Professional R Enthusiast<br>
+33(0) 6 28 91 30 30<br>
<a href="http://romainfrancois.blog.free.fr" target="_blank">http://romainfrancois.blog.free.fr</a><br>
|- <a href="http://bit.ly/9VOd3l" target="_blank">http://bit.ly/9VOd3l</a> : ZAT! 2010<br>
|- <a href="http://bit.ly/c6DzuX" target="_blank">http://bit.ly/c6DzuX</a> : Impressionnism with R<br>
`- <a href="http://bit.ly/czHPM7" target="_blank">http://bit.ly/czHPM7</a> : Rcpp Google tech talk on youtube<br>
<br>
<br>
</font></blockquote></div><br>