<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><span>Hi all,<br><br>I have a problem using simultaneously RCPP and Snow with Rstudio. The problem only appears when I use Rstudio, and the code runs well when using RGUI.<br>I wrote a cpp function that I want to run in parallel. So I use Snow and compile the function on each node as follow:<br><br>library(parallel)<br>library(Rcpp)</span><br><span><span>library(RcppArmadillo)<br></span>cl = makeCluster(nnodes, type = "SOCK")<br>clusterEvalQ(cl, library(Rcpp))<br>  clusterEvalQ(cl, library(RcppArmadillo))<br>  clusterEvalQ(cl, setwd(my_path))<br>  clusterEvalQ(cl[i], sourceCpp("Rcpp/function.cpp"))<br><br>The produced error is the following:<br><br></span><span><span>Error in checkForRemoteErrors(lapply(cl, recvResult)) : <br>  one node produced an error: Error 1 occurred building shared library.<br><br></span>Have you ever had this problem? Is it necessary to configure Rstudio in a particular way in order to make it work?<br>Thanks,<br><br>Maxime<br></span>                                         </div></body>
</html>