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

[Rcpp-devel] clusterExport fails on Rcpp functions

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

[Rcpp-devel] T::get_na() where T is a Column

2015-09-11 Thread Rguy
I would like to call a template function including the expression T::get_na() with a matrix Column as the T. The toy program below illustrates what I am trying to do. Various error messages are generated by the compiler with, I think, the key one being: column_get_na.cpp:11:2: error: 'get_na' is