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

2013-07-06 Thread Dirk Eddelbuettel
On 28 June 2013 at 15:04, John Swan wrote: | Once this is installed alongside Xcode 4.6 and Xcode 5.0 DP, both inline and | sourceCpp now work perfectly, and Xcode development appears to be unaffected. Thank you both. If you have a suggested patch for the Rcpp-FAQ to document more clearly how OS

Re: [Rcpp-devel] Add Vector::containsElementNamed(string) overload?

2013-07-06 Thread Dirk Eddelbuettel
On 4 July 2013 at 12:43, Romain Francois wrote: | Thanks. This seems like a good idea. And kudos for updating unit tests as well. | | I'll apply this later if nobody else is faster. Well you and I are both travelling so this may need a few more days -- but let me add a second 'Thank You' to Be

Re: [Rcpp-devel] error handling for computational singularity

2013-07-06 Thread Dirk Eddelbuettel
On 6 July 2013 at 18:56, Xiao He wrote: | Hi dear listers, | | Take the mock function below for an example. What would be the best way to | handle computational singularity? That is essentially a _statistical_ issue and not a Rcpp problem so that is not really the right forum. | #include | #in

[Rcpp-devel] error handling for computational singularity

2013-07-06 Thread Xiao He
Hi dear listers, Take the mock function below for an example. What would be the best way to handle computational singularity? #include #include #include // [[Rcpp::depends(RcppArmadillo)]] using namespace Rcpp; using namespace arma; RcppExport SEXP foo(SEXP X, SEXP Y){ arma::mat x=Rcpp::as(