[Rcpp-devel] More Rccp and RccpArmadillo Errors on Mavericks
monroeleescott at gmail.com
Mon Nov 4 18:56:12 CET 2013
Everything is working now, which is fantastic. I still do get 'ld'
warnings, but the function works just fine. Do those warnings indicate any
other problems (e.g., when making a package)?
Thanks again, Scott
On Mon, Nov 4, 2013 at 9:44 AM, Kevin Ushey <kevinushey at gmail.com> wrote:
> The .tgz files aren't source packages; those are the formats given to
> the binary packages distributed on CRAN. You should be able to install
> the source versions with install.packages( c("Rcpp", "RcppArmadillo"),
> type="source") (and these are served up as .tar.gz).
> Make sure your ~/.R/Makevars file is set up accordingly as well; e.g.
> the answers here:
> On Mon, Nov 4, 2013 at 9:35 AM, Scott Monroe <monroeleescott at gmail.com>
> > This is sort of piggy-backing on the thread with Michael and Romain.
> > I can't get RccpArmadillo working properly and am looking for
> > I have installed:
> > R 3.0.2
> > Xcode 5.0.1 and command line tools
> > gfortran libs (i.e., gfortran-4.9-bin.tar)
> > Rcpp package from source (i.e., Rcpp_0.10.6.tgz)
> > RcppArmadillo package from source (i.e., RcppArmadillo_0.3.920.1.tgz)
> > below, "rowSums.cpp" contains a function Romain Francis wrote, and can be
> > seen in the middle of this post:
> > In the R session, I have:
> >> evalCpp("1+1")
> >  2
> >> sourceCpp("rowSums.cpp")
> > Error in
> > :
> > unable to load shared object
> > 6): Symbol not found:
> > Referenced from:
> > Expected in: flat namespace
> > in
> >> sessionInfo()
> > R version 3.0.2 (2013-09-25)
> > Platform: x86_64-apple-darwin10.8.0 (64-bit)
> > locale:
> >  en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
> > attached base packages:
> >  stats graphics grDevices utils datasets methods base
> > other attached packages:
> >  RcppArmadillo_0.3.920.1 Rcpp_0.10.6
> > loaded via a namespace (and not attached):
> >  tools_3.0.2
> > Any suggestions? Thanks.
> > _______________________________________________
> > Rcpp-devel mailing list
> > Rcpp-devel at lists.r-forge.r-project.org
> > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rcpp-devel