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

僤鯓⒐⒋嵵緔 提交于 2019-12-28 13:34:14

问题


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

回答1:


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



来源:https://stackoverflow.com/questions/18570526/how-to-build-a-r-package-which-use-rcpp-with-external-c-libraries

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!