[Rcpp-devel] rcpp 0.10 on mac error with sourceCpp

Jiqiang Guo guojq28 at gmail.com
Thu Nov 15 19:32:59 CET 2012


Thanks.

But I am using R from command line, and I think it is set correctly:

> Sys.getenv("R_ARCH")
[1] "/x86_64"

--
Jiqiang

On Thu, Nov 15, 2012 at 1:30 PM, JJ Allaire <jj.allaire at gmail.com> wrote:
>
>
> On Thu, Nov 15, 2012 at 1:20 PM, Jiqiang Guo <guojq28 at gmail.com> wrote:
>>
>> I tried the example of sourceCpp on Mac mountain lion with R 2.15.1
>> with the following error (I hit the similar error in using RStan as
>> well).
>
>
> I think the common problem here might be whether R_ARCH is set correctly. On
> the Mac R_ARCH needs to be set in order for R CMD SHLIB, which is used by
> both sourceCpp and RStan, to work.
>
> For 64-bit Macs this value would be:
>
> R_ARCH=/x86_64
>
> What is R_ARCH set to in your session?
>
> J.J.


More information about the Rcpp-devel mailing list