<div class="gmail_quote"><div>Hi Dirk,</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">We do not do anything particular. We just let R and the OS load the right one</div>

</div>
for us.<br></blockquote><div><br></div><div>Yep, that&#39;s what I would have expected as well. Will send a post out on OS X if it becomes worth it: for now, can stick with VecLib. I do suspect this should be easy to fix.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">In general replacing a BLAS implementation is just a matter of making it</div>
visible to the dynamic linker -- I used that very feature on a recent paper<br>
on BLAS benchmarking (see my blog and the gcbd package on CRAN which has the<br>
paper as a vignette).  But again, I limited myself to Linux there as that is<br>
what I use.<br></blockquote><div><br></div><div>Yep, same on Mac. Details here:</div><div><br></div><div><a href="http://cran.rakanu.com/bin/macosx/RMacOSX-FAQ.html#Which-BLAS-is-used-and-how-can-it-be-changed_003f">http://cran.rakanu.com/bin/macosx/RMacOSX-FAQ.html#Which-BLAS-is-used-and-how-can-it-be-changed_003f</a></div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">You are one Rcpp version behind here. We did release 0.8.7 right after R 2.12.0.<br></blockquote><div><br>

</div><div>Mac binary on CRAN is for 0.8.6. Had not installed 0.8.7 from source because I figured there must be a reason why the Mac binary was for 0.8.6. Just updated from source: seems to have installed fine.</div><div>

<br></div><div>Somewhat instructive that Rcpp works with alternative BLAS. The problem occurs only for RcppArmadillo and other BLAS.</div><div><br></div><div><div>&gt; <span class="Apple-tab-span" style="white-space:pre">        </span>fx &lt;- cxxfunction( signature(x = &quot;integer&quot;, y = &quot;numeric&quot; ) , &#39;</div>

<div>+ <span class="Apple-tab-span" style="white-space:pre">                </span>return wrap( as&lt;int&gt;(x) * as&lt;double&gt;(y) ) ;</div><div>+ <span class="Apple-tab-span" style="white-space:pre">        </span>&#39;, plugin = &quot;Rcpp&quot; )</div>

<div>&gt; <span class="Apple-tab-span" style="white-space:pre">        </span>fx( 2L, 5 )</div><div>[1] 10</div></div><div><div>&gt; <span class="Apple-tab-span" style="white-space:pre">        </span>fx &lt;- cxxfunction( signature(x = &quot;integer&quot;, y = &quot;numeric&quot; ) , &#39;</div>

<div>+ <span class="Apple-tab-span" style="white-space:pre">                </span>int dim = as&lt;int&gt;( x ) ;</div><div>+ <span class="Apple-tab-span" style="white-space:pre">                </span>arma::mat z = as&lt;double&gt;(y) * arma::eye&lt;arma::mat&gt;( dim, dim ) ;</div>

<div>+ <span class="Apple-tab-span" style="white-space:pre">                </span>return wrap( arma::accu(z) ) ;</div><div>+ <span class="Apple-tab-span" style="white-space:pre">        </span>&#39;, plugin = &quot;RcppArmadillo&quot; )</div>

<div>&gt; <span class="Apple-tab-span" style="white-space:pre">        </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-//RtmpYGZhs8/file5483259d.so&#39;:</div>

<div>  dlopen(/var/folders/jE/jEC73-DJEeSnEv72rVDHDE+++TM/-Tmp-//RtmpYGZhs8/file5483259d.so, 6): Library not loaded: libgoto2_penrynp-r1.13.dylib</div><div>  Referenced from: /var/folders/jE/jEC73-DJEeSnEv72rVDHDE+++TM/-Tmp-//RtmpYGZhs8/file5483259d.so</div>

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