如何构建使用 Rcpp 和外部 C++ 库的 R 包? [英] How to build a R package which use Rcpp with external c++ libraries?
本文介绍了如何构建使用 Rcpp 和外部 C++ 库的 R 包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
比如boost,哪里可以指定如下:
1.外部c++头文件包含路径2.外部c++源文件3.外部c++链接库文件路径
解决方案
一切都在 src/Makevars
中,如
R 附带的精美手册编写 R 扩展>
使用 Rcpp 编写包 小插图或我的书,我在...
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
解决方案
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 ...
这篇关于如何构建使用 Rcpp 和外部 C++ 库的 R 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文