[英]How to build an external C++ library to use with R/Rcpp (e.g. Boost)
I can't seem to find anything on the internet which show you how to build and compile a C++ library such that it can be used in R via the Rcpp package.我似乎在互联网上找不到任何东西,它向您展示如何构建和编译 C++ 库,以便它可以通过 Rcpp ZEFE90A8E604A7C840E88D03A67F6B7 在 R 中使用。 I am missing some steps where the library is somehow linked to R tools
我错过了一些步骤,其中库以某种方式链接到 R 工具
For instance how do you get the boost library working with R or any other such library?例如,如何让 boost 库与 R 或任何其他此类库一起使用?
Normal instructions:正常指令:
https://andres.jaimes.net/718/how-to-install-the-c-boost-libraries-on-windows/ https://www.boost.org/doc/libs/1_55_0/more/getting_started/windows.html#or-build-from-the-command-prompt https://andres.jaimes.net/718/how-to-install-the-c-boost-libraries-on-windows/ https://www.boost.org/doc/libs/1_55_0/more/getting_started/ windows.html#or-build-from-the-command-prompt
This is almost surely a duplicate but I am in-between tasks and cannot search now...这几乎肯定是重复的,但我处于任务之间,现在无法搜索......
"It's still complicated" but Rcpp 1.0.5 now also ship this arXiv paper I wrote on this as this vignette . “它仍然很复杂”,但 Rcpp 1.0.5 现在还发布了我在此上写的这篇 arXiv 论文,作为这个小插图。 In short, you need to differentiate between
简而言之,您需要区分
The third one is hardest as you now have the problem of getting it to CRAN and your users.第三个是最难的,因为您现在遇到了将其发送给 CRAN 和您的用户的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.