Re: [Rcpp-devel] Plugin example

2015-06-01 Thread Dirk Eddelbuettel
On 1 June 2015 at 19:06, Wagner Bonat wrote: | Dear all, | | I am starting to study the Rcpp package. I am reading the Rcpp book, butI have | a problem on Listing 2.8 from Rcpp book. This listing is about Creating | Plugins. | | | ## The C++ code | gslrng <-' | int seed = Rcpp::as(par) ; | gsl_

[Rcpp-devel] Plugin example

2015-06-01 Thread Wagner Bonat
Dear all, I am starting to study the Rcpp package. I am reading the Rcpp book, butI have a problem on Listing 2.8 from Rcpp book. This listing is about Creating Plugins. ## The C++ code gslrng <-' int seed = Rcpp::as(par) ; gsl_rng_env_setup(); gsl_rng *r = gsl_rng_alloc (gsl_rng_default); gsl_r