[Rcpp-devel] R package linking to C: coding advice

Guillaume Chapron carnivorescience at gmail.com
Wed Jun 3 18:20:55 CEST 2015


Hello,

> a) GSL for RNGs is (probably) inferior to what R does; if your main interest
> is in the R package (as opposed to R as well as a standalone program) then it
> may make sense to just use R's RNGs. 

Why are the RNGs in GSL probably inferior than the ones in R? When calling C code from R, is it general recommended to use in C the R's RNGs instead of having other RNGs in the C program?

Thanks

Guillaume



More information about the Rcpp-devel mailing list