Hi folks,<div><br></div><div>I bumped into the Google techtalk video on Friday and have been playing around with Rcpp and RcppArmadillo over the weekend. Looks excellent! Thanks for all the work.</div><div><br></div><div>When using RcppArmadillo with VecLib, things work as expected. If I change the BLAS to Goto using the link libRBlas.dylib then I get</div>


<div><br></div><div><div>&gt; <span style="white-space:pre-wrap">        </span>fx &lt;- cxxfunction( signature(x = &quot;integer&quot;, y = &quot;numeric&quot; ) , &#39;</div><div>+ <span style="white-space:pre-wrap">                </span>int dim = as&lt;int&gt;( x ) ;</div>


<div>+ <span style="white-space:pre-wrap">                </span>arma::mat z = as&lt;double&gt;(y) * arma::eye&lt;arma::mat&gt;( dim, dim ) ;</div><div>+ <span style="white-space:pre-wrap">                </span>return wrap( arma::accu(z) ) ;</div>


<div>+ <span style="white-space:pre-wrap">        </span>&#39;, plugin = &quot;RcppArmadillo&quot; )</div><div>&gt; <span style="white-space:pre-wrap">        </span>fx( 2L, 5 )</div><div>Error in dyn.load(libLFile) : </div>
<div>  unable to load shared object &#39;/var/folders/jE/jEC73-DJEeSnEv72rVDHDE+++TM/-Tmp-//RtmplLeXZq/file444e0aa5.so&#39;:</div><div>  dlopen(/var/folders/jE/jEC73-DJEeSnEv72rVDHDE+++TM/-Tmp-//RtmplLeXZq/file444e0aa5.so, 6): Library not loaded: libgoto2_penrynp-r1.13.dylib</div>


<div>  Referenced from: /var/folders/jE/jEC73-DJEeSnEv72rVDHDE+++TM/-Tmp-//RtmplLeXZq/file444e0aa5.so</div><div>  Reason: image not found</div></div><div><br></div><div>The above is for a 64 bit only Goto BLAS. The error for the ATLAS blas is identical. I am using the CRAN binary which allows one to load any BLAS as a shared library.</div>

<div><br></div><div>The fix so far has been to stick to the VecLib BLAS. However, these days, I use either the ATLAS BLAS or the Goto BLAS on R/Mac OS (there have been a few threads on the VecLib BLAS in Mac OS. multithreading on Nehalem is broken in VecLib. found Goto works the best for me.) </div>

<div><br></div><div>Would supporting Goto or ATLAS on Mac OS be a major step, or a simpler matter of changing a dynamic link some where to load the library? Looks like libLFile is not picking up the correct path (VecLib is in the same location as ATLAS and Goto)? Appreciate your thoughts.</div>

<meta charset="utf-8"><div><br></div><div>sessionInfo below.</div><div><br></div><div>Thanks,</div><div>Anirban</div><div><br></div><div>&gt; sessionInfo()</div><div><div><div>R version 2.12.0 Patched (2010-10-19 r53362)</div>

<div>Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)</div><div><br></div><div>locale:</div><div>[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8</div><div><br></div><div>attached base packages:</div><div>[1] stats     graphics  grDevices utils     datasets  methods   base     </div>

<div><br></div><div>other attached packages:</div><div>[1] RcppArmadillo_0.2.8 Rcpp_0.8.6          inline_0.3.6       </div><div><br></div><div>loaded via a namespace (and not attached):</div><div>[1] tools_2.12.0</div></div>

</div><div><br></div><div><br>-- <br>Anirban Mukherjee | Assistant Professor, Marketing | LKCSB, SMU<br>5056 School of Business, 50 Stamford Road, Singapore 178899 | +65-6828-1932<br>

</div>