[R] Rcpp RNG - runif() override

John van Aarde john.vanaarde at gmail.com
Thu Sep 17 23:24:42 CEST 2015


Dear R users,

I'm attempting to override the base function runif() with a function, custom_runif(), that I've written and tested in Rcpp - with the aim of using my own RNG in DEoptim.

I've attempted setting the name in a namespace changing locking to no avail, e.g.

assignInNamespace(runif, custom_runif, ns='DEoptim") 

and would appreciate any guidance on the best approach to this.

Many thanks,
John



More information about the R-help mailing list