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

Jiqiang Guo guojq28 at gmail.com
Thu Nov 15 19:51:58 CET 2012


I see.  For some reason, my installing Rcpp from source last time did
not install the 64 bits lib, so
Rcpp.system.file("lib", .Platform$r_arch) for me returns "".

I reinstalled Rcpp 0.10.0 from source and made sure lib/x86_64 exists, then
everything is fine.

Thanks.

--
Jiqiang

On Thu, Nov 15, 2012 at 1:42 PM, JJ Allaire <jj.allaire at gmail.com> wrote:
> The error appears to be occurring in the call to RcppLdPath (made by both
> sourceCpp and RStan). Here's the source code for that function:
>
> RcppLdPath <- function() {
>     if (nzchar(.Platform$r_arch)) { ## eg amd64, ia64, mips
>         path <- Rcpp.system.file("lib",.Platform$r_arch)
>     } else {
>         path <- Rcpp.system.file("lib")
>     }
>     path
> }
>
> The call to Rcpp.system.file (looking for lib) is failing in your
> configuration. I'm not sure why this would be.
>
>


More information about the Rcpp-devel mailing list