[Rcpp-devel] clusterExport fails on Rcpp functions
edd at debian.org
Fri Sep 11 14:15:46 CEST 2015
On 11 September 2015 at 08:02, JJ Allaire wrote:
| The problem is that Rcpp functions created via sourceCpp can't be serialized
| (their backing shared library is gone when they are re-serialized). The
| solution to this is to either:
| a) Rebuild them on the cluster nodes (i.e. just include a string with their
| source and then call sourceCpp on each node); or
| b) Move your C++ functions into an R package that's available on all the nodes.
And b) is what have recommend numerous times before here and on SO.
It would also be nice if Mr "Rguy" could use a real name just like everybody else.
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel