[Rcpp-devel] mixing R's and C++'s RNGs and distributions

Matt D. matdzb at gmail.com
Sat Jun 20 23:38:24 CEST 2015


On 6/20/2015 21:13, Ramon Diaz-Uriarte wrote:
> As a follow up to the thread below, using randutils has turned out to be
> very simple (and provides some additional nice features, such as pick,
> etc). Directly using it in an R package makes R CMD check complain about
> the usage of the Exit function (only its address is used, not the function
> itself). That can be solved by changing the line
>
> auto exit_func = hash(&_Exit);
>
> by, say
>
> auto getenv_func = hash(&getenv);
>
> and making the corresponding change a little bit further below.
Sounds great, thanks for the update!

Best,

Matt



More information about the Rcpp-devel mailing list