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