I am trying to optimize a Rcpp function parallely using the R package "optimParallel". But I am getting the error:
Error in checkForRemoteErrors(val) : 3 nodes produced errors; first error: object 'Likelihood' not found
Now, the function "Likelihood" is written in C++ and exported to R via "Rcpp". I found in this link: parallelize Own Package in R
that I have to define the function in R global environment, which I did. But it did not solve the problem. I did not write the C++ code here as it is too complex.