<div dir="ltr">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:<div><br></div><div>a) Rebuild them on the cluster nodes (i.e. just include a string with their source and then call sourceCpp on each node); or</div><div><br></div><div>b) Move your C++ functions into an R package that's available on all the nodes.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 11, 2015 at 7:55 AM, Rguy <span dir="ltr"><<a href="mailto:rguy@123mail.org" target="_blank">rguy@123mail.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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):<div><br></div><div><div>Error in checkForRemoteErrors(val) : </div><div>  5 nodes produced errors; first error: NULL value passed as symbol address</div></div><div><br></div><div>I am running Windows 7, and the cluster is on a quadcore machine. Exporting ordinary R functions is completely error-free in my setup.</div><div><br></div><div>Has anyone else experienced this problem? Any suggestions on a fix? Thanks.</div></div>
<br>_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br></blockquote></div><br></div>