[Rcpp-devel] recommended way to use Rcpp in packages
romain at r-enthusiasts.com
romain at r-enthusiasts.com
Fri Jul 16 14:50:17 CEST 2010
Le 16 juil. 2010 à 14:40, Douglas Bates <bates at stat.wisc.edu> a écrit :
> On Fri, Jul 16, 2010 at 3:51 AM, Romain Francois
> <romain at r-enthusiasts.com> wrote:
>> Dear package maintainers,
>>
>> Some of your package fail to compile on windows 64 with the current versions
>> of R and Rcpp.
>>
>> It appears to be related to the Makevars.win. What to write in the
>> Makevars.win file has changed over time as new advice have been given, etc
>> ... so I wanted to send an email to advise what is the currently best way to
>> do it.
>>
>> We need two things :
>>
>> - Rcpp headers : this is really easy, you just need to add the following
>> line in your DESCRIPTION
>>
>> LinkingTo: Rcpp
>>
>> if you do this, you don't need the PKG_CPPFLAGS line in the Makevars and
>> Makevars.win anymore. This is recommended as there appears to be problems
>> with both backticks and the use of $shell
>>
>>
>> - linking against the library : on windows, you need to follow Brian
>> Ripley's advice : http://article.gmane.org/gmane.comp.lang.r.devel/24449
>>
>> and use this in your Makevars.win:
>>
>> PKG_LIBS = $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e
>> "Rcpp:::LdFlags()")
>>
>> (this might change again in the future and we will advise again)
>>
>> Please consider registering to the Rcpp-devel mailing list if you wish to
>> reply to this email.
>> http://lists.r-forge.r-project.org/mailman/listinfo/rcpp-devel
>
> Are we expected to add
>
> SystemRequirements: GNU make
>
> to DESCRIPTION because of the use of $shell?
Yes ... Thanks i keep forgetting about that.
Romain
More information about the Rcpp-devel
mailing list