[Rcpp-devel] cxxfunction -- extra argument to g++
Dirk Eddelbuettel
edd at debian.org
Tue Jan 24 22:23:00 CET 2012
Slow down. You are rushing things a little:
a) we _do_ want the Arma plugin, it does more than just one setting
b) once we have it, Arma works fine:
require(inline)
cppbugs.plugin <- getPlugin("RcppArmadillo") ## Arma!!
cppbugs.plugin$env$PKG_CXXFLAGS <- "-std=c++0x"
foo.bar <- cxxfunction(signature(hat="numeric"), body='
arma::colvec v(2);
return Rcpp::wrap(v);
', settings=cppbugs.plugin, verbose=TRUE)
Dirk
--
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx
More information about the Rcpp-devel
mailing list