[R] A function for random test based on longest run (UNCLASSIFIED)

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Dec 29 18:03:10 CET 2007


On Thu, 27 Dec 2007, Dirk Eddelbuettel wrote:

>
> On 27 December 2007 at 12:08, bogdan romocea wrote:
> |   > require(tseries)
> |   > ?runs.test
> | Also, take a look at dieharder, it implements a large number of
> | randomness tests:
> | http://www.phy.duke.edu/~rgb/General/dieharder.php
>
> Also note that CRAN has an RDieHarder package that provides access to
> DieHarder tests from R.  RDieHarder is currently happier on Linux than on
> Windows. If anybody wants to contribute build instructions for Windows ...

It's not easy on Linux!  There is a src/Makefile that ignores most of the 
info from how R was built, including CC, CFLAGS andlibrary pats such as 
/usr/local/lib64.  And that's if you can get dieharder built: it gave me 
lots of errors before succeeding.  I managed to build from the SRPM, but 
that installed with the include files without read permissions.

But I've succeeded on Windows, and RDieHarder is now in the CRANextras 
collection (and so can be installed from the menus etc). I'll send Dirk 
separately notes on what I had to do to make it work.

-- 
Brian D. Ripley,                  ripley at 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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list