Re: [Rd] package load altering RNG state

2017-02-07 Thread Benjamin Tyner
Martin, Outstanding! This is a most welcome enhancement. Regards Ben On 02/07/2017 09:59 AM, Martin Maechler wrote: Henric Winell on Tue, 7 Feb 2017 13:37:42 +0100 writes: > Hi, On 2017-02-07 13:12, Benjamin Tyner wrote: >> Hello >> >> When loading a package, I'm

Re: [Rd] package load altering RNG state

2017-02-07 Thread Henric Winell
On 2017-02-07 15:59, Martin Maechler wrote: Henric Winell on Tue, 7 Feb 2017 13:37:42 +0100 writes: > Hi, On 2017-02-07 13:12, Benjamin Tyner wrote: >> Hello >> >> When loading a package, I'm wondering if it's frowned >> upon for the package to alter the state o

Re: [Rd] package load altering RNG state

2017-02-07 Thread Martin Maechler
> Henric Winell > on Tue, 7 Feb 2017 13:37:42 +0100 writes: > Hi, On 2017-02-07 13:12, Benjamin Tyner wrote: >> Hello >> >> When loading a package, I'm wondering if it's frowned >> upon for the package to alter the state of the random >> number generator? I g

Re: [Rd] package load altering RNG state

2017-02-07 Thread Henric Winell
Hi, On 2017-02-07 13:12, Benjamin Tyner wrote: Hello When loading a package, I'm wondering if it's frowned upon for the package to alter the state of the random number generator? I guess not, since the parallel package does it? Surprisingly it is not frowned upon, but it *is* a nuisance.

[Rd] package load altering RNG state

2017-02-07 Thread Benjamin Tyner
Hello When loading a package, I'm wondering if it's frowned upon for the package to alter the state of the random number generator? I guess not, since the parallel package does it? > set.seed(6860) > old.seed <- .GlobalEnv$.Random.seed > library(parallel) > new.seed <- .GlobalEnv$