Rcpp sourceCpp with parallel foreach

那年仲夏 提交于 2019-12-12 15:05:52

问题


I have a function foo written in Rcpp which I can utilize in my R session through sourceCpp.

I also have a cluster of machines using R's parallel makePSOCKCluster. I want to run a parallel foreach loop across these machines which will utilize foo. I can see the function being exported through foreach, but I think only the pointer to the Rcpp function is exported. How can I make sure that the function foo itself is also exported?

来源:https://stackoverflow.com/questions/26418655/rcpp-sourcecpp-with-parallel-foreach

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