[Rcpp-devel] clusterExport fails on Rcpp functions

JJ Allaire jj.allaire at gmail.com
Fri Sep 11 14:02:07 CEST 2015

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

On Fri, Sep 11, 2015 at 7:55 AM, Rguy <rguy at 123mail.org> wrote:

> I find that when I attempt to export Rcpp functions to a cluster using the
> R clusterExport function I get the following error (or some variant
> thereof):
> Error in checkForRemoteErrors(val) :
>   5 nodes produced errors; first error: NULL value passed as symbol address
> I am running Windows 7, and the cluster is on a quadcore machine.
> Exporting ordinary R functions is completely error-free in my setup.
> Has anyone else experienced this problem? Any suggestions on a fix? Thanks.
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150911/28310860/attachment.html>

More information about the Rcpp-devel mailing list