On 28 October 2013 at 14:15, Wray, Christopher wrote: | Its just a typo on plugin (no s). And scope Rcpp::wrap. | | cfunc <- cxxfunction( signature(start="vector"), body = 'Rcpp::NumericVector x(start); return Rcpp::wrap(1);', plugin = "Rcpp" ) | | extra 's' on parameter plugins | | or | | cfunc <- cxxfunction( signature(start="vector"), body = 'using namespace Rcpp; NumericVector x(start); return wrap(1);', plugin = "Rcpp" ) | | both work.
Nice. I didn't catch that. Guess it shows I am using mostl Rcpp Attributes these days :) Thanks! Good example why people should use the list (rather than private email) to have questions exposed to smarter readers. :) Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel