[Rd] Invalid .Random.seed problems: (PR#445)

Prof Brian Ripley Prof Brian Ripley <ripley@stats.ox.ac.uk>
Wed, 16 Feb 2000 15:11:45 +0000 (GMT)


> From: plummer@iarc.fr
> Date: Wed, 16 Feb 2000 15:43:20 +0100 (MET)
> To: r-devel@stat.math.ethz.ch
> Subject: [Rd] Invalid .Random.seed problems: (PR#445)
> CC: R-bugs@biostat.ku.dk
> X-Loop: R-bugs@biostat.ku.dk
> 
> I have some old work spaces with old-style (now invalid) values of

Pre-0.65.1 workspaces? I had not envisaged anyone would still have those.

> .Random.seed.  If I attempt to use the old random seed I get an error
> message, of course. After removing the invalid .Random.seed the random
> number functions will not work since they try to grab a huge chunk of
> memory.
> 

Fix: in GetRNGstate in RNG.c add the second line of

	default:
	    RNG_kind = RNG_DEFAULT; N01_kind = 0;
	    error(".Random.seed[1] is NOT a valid RNG kind (code)");


-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._