How to build a R package which use Rcpp with external c++ libraries?

后端 未结 2 1599
囚心锁ツ
囚心锁ツ 2020-12-01 15:25

Such as boost, where can I specify the following:

1.External c++ header file include path 
2.External c++ source file 
3.External c++ link library file path         


        
2条回答
  •  无人及你
    2020-12-01 15:52

    It all goes into src/Makevars as explained in

    • the fine manual Writing R Extensions that came with R

    • either the Writing a package using Rcpp vignette or my book both of which I told you about in ...

    • ... my replies to your post on rcpp-devel

提交回复
热议问题