[R] same random numbers in different sessions

Liviu Andronic landronimirc at gmail.com
Sun Oct 10 10:06:12 CEST 2010


Dear all
Thanks for all the pointers.

On Sat, Oct 9, 2010 at 11:39 PM, Daniel Nordlund
<djnordlund at frontier.com> wrote:
> Could you be reloading a workspace at start-up that is setting the seed?  What happens if you start R using the --vanilla option?
>
It seems that this is the culprit. For some reason, my $HOME session
already has
> ls(all=T)
[1] ".Random.seed"

If I open a session in /tmp, or using --vanilla then I get actual
pseudo-random numbers. It seems that require(IPSUR) is not at fault,
either.

Regards
Liviu



More information about the R-help mailing list