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 ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.