Re: [Rcpp-devel] Copying a NumericVector from a list within a list

2014-04-14 Thread Anirban Mukherjee
This works: #include using namespace Rcpp; // [[Rcpp::export]] NumericVector fromList(List outer, std::string name) { return (as (outer[0]) [name]); } /*** R x <- c(0.2855202, 0.6731716, 0.8497825, 0.7445254, 0.2382722) innL <- list(p=x) outL <- list(List1=innL) fromList(outL, "p") */ > s

Re: [Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

2013-07-01 Thread Anirban Mukherjee
> The build of gfortran that you recommended still has a broken link, but it > is still available here: > http://cran.r-project.org/bin/macosx/tools/gfortran-4.2.3.dmg > > Once this is installed alongside Xcode 4.6 and Xcode 5.0 DP, both inline > and sourceCpp now work perfectly, a

Re: [Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

2013-06-27 Thread Anirban Mukherjee
o already have gcc 4.2 installed, but you seem to have it > working ? > > Additionally, can you tell me if installing these packages has any adverse > effect on your Xcode development environment (llvm-clang, iOS development > etc)? > > Best regards > John > > On 27 J

Re: [Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

2013-06-26 Thread Anirban Mukherjee
Wed, Jun 26, 2013 at 7:04 PM, Anirban Mukherjee < anirban.mukher...@gmail.com> wrote: > library(inline); library(RcppArmadillo) > > rowSumsRA <- cxxfunction(signature(x = "numeric"), plugin="RcppArmadillo", > body='return Rcpp::wrap(arma::sum(as(x),0

Re: [Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

2013-06-26 Thread Anirban Mukherjee
library(inline); library(RcppArmadillo) rowSumsRA <- cxxfunction(signature(x = "numeric"), plugin="RcppArmadillo", body='return Rcpp::wrap(arma::sum(as(x),0));') colSumsRA <- cxxfunction(signature(x = "numeric"), plugin="RcppArmadillo", body='return Rcpp::wrap(arma::sum(as(x),1));') Anirban > D

Re: [Rcpp-devel] Using Goto blas in Mac OS

2010-10-31 Thread Anirban Mukherjee
file5483259d.so': dlopen(/var/folders/jE/jEC73-DJEeSnEv72rVDHDE+++TM/-Tmp-//RtmpYGZhs8/file5483259d.so, 6): Library not loaded: libgoto2_penrynp-r1.13.dylib Referenced from: /var/folders/jE/jEC73-DJEeSnEv72rVDHDE+++TM/-Tmp-//RtmpYGZhs8/file5483259d.so Reason: image not found Th

[Rcpp-devel] Using Goto blas in Mac OS

2010-10-31 Thread Anirban Mukherjee
inline_0.3.6 loaded via a namespace (and not attached): [1] tools_2.12.0 -- Anirban Mukherjee | Assistant Professor, Marketing | LKCSB, SMU 5056 School of Business, 50 Stamford Road, Singapore 178899 | +65-6828-1932 ___ Rcpp-devel mailing list Rcpp-devel@lists