Re: [Rcpp-devel] clusterExport fails on Rcpp functions

2015-09-11 Thread Dirk Eddelbuettel
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

Re: [Rcpp-devel] clusterExport fails on Rcpp functions

2015-09-11 Thread JJ Allaire
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 nod