RcppModules: Manually build/expose C+ classes to R

邮差的信 提交于 2019-12-06 14:40:59

Thanks to @nrussell for engaging you in some clarification here. Your last comment has a few more specific questions I'll answer briefly:

1) Well yes, RCPP_MODULE is always used in a header file. See various examples packages on CRAN and maybe use r-pkg.org to search.

2) Yes. Use a package. See dozens of answers here suggesting a package. DO NOT DO IT BY HAND. Do not write Makefiles manually. Use a package.

3) No canned answer for that.

Look around and study e.g. Rich FitzJohn's RcppR6 which expressively written for the use case of many local classes where Rcpp Modules became too slow at load.

Several of my packages use Rcpp Modules, but these are comparatively small packages.

For extended discussion, subscribe to and post on the rcpp-devel list.

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