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

From: Dirk Eddelbuettel <>
Date: Sat, 29 Dec 2007 11:27:56 -0600


On 29 December 2007 at 17:03, Prof Brian Ripley wrote:
| 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:
| > |
| >
| > 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.

Ack, that needs fixing for amd64 etc. The rest worked for us...

| And that's if you can get dieharder built: it gave me
| lots of errors before succeeding.

FWIW, Robert, DieHarder's principal author (CC'ed), works on a Fedora system, and we know of successful ports to (at least) BSD. So unless you tell us how it fails there is little we can do.

| I managed to build from the SRPM, but
| that installed with the include files without read permissions.
| But I've succeeded on Windows,

Excellent! I had one quick look a few month ago on my MinGW setup at work and ... didn't have enough (and interest) to make it work. But having a working RDieHarder on Windows would be very useful, so thanks!

| 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.

I look forward to receiving those. We also got patches from Anton Korobeynikov (CC'ed) for building DieHarder on Windoze but I haven't had time to look at those.

Thanks, Dirk

Three out of two people have difficulties with fractions.

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 31 Dec 2007 - 08:42:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 31 Dec 2007 - 09:30:21 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.