[Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

Dirk Eddelbuettel edd at debian.org
Wed Jun 26 12:31:00 CEST 2013

Hi John,

Thanks for posting here.  

On 26 June 2013 at 11:11, John Swan wrote:
| Hi,
| I just purchased Dirk's book on Seamless Rcpp and I'm finding it very useful.
| However, I'm having a strange error running RcppArmadillo inline, where the
| book examples seem to manage it effortlessly.

Romain already gave you very detailed feedback regarding your code, which
showed a number of small (but significant) errors.  I also don't think you
code came from the Rcpp book.

Maybe you could just start from the examples in the RcppArmadillo package, as
eg fastLm.r (two working uses of cxxfunction()) or varSimulation.r or the
kalman example? These are in fact discussed in the book too...  

Otherwise a number of examples are at the Rcpp Gallery (http://gallery.rcpp.org)
tagged for Armadillo: http://gallery.rcpp.org/tags/armadillo/

Any of these should help you start from a working example, and go from there.

Hope this helps,   Dirk

Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com

More information about the Rcpp-devel mailing list