suppressMessages(library(Rcpp)) suppressMessages(library(inline)) suppressMessages(library(rbenchmark)) ## NOTE: This is the old way to compile Rcpp code inline. ## The code here has left as a historical artifact and tribute to the old way. ## Please use the code under the "new" inline compilation section. rcppGamma_old <- cxxfunction(signature(xs="numeric"), plugin="Rcpp", body=' NumericVector x(xs); int n = x.size(); // Initialize Random number generator RNGScope scope; const double y = 1.234; for (int i=0; i