From maechler at stat.math.ethz.ch  Sat Mar 18 14:58:57 2006
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Sat, 18 Mar 2006 14:58:57 +0100
Subject: [Rd] all.equal buglet(s)
In-Reply-To: <441C0318.9080506@pburns.seanet.com>
References: <441C0318.9080506@pburns.seanet.com>
Message-ID: <17436.4641.69503.211180@stat.math.ethz.ch>

Thanks a lot, Pat!

>>>>> "PatBurns" == Patrick Burns <pburns at pburns.seanet.com>
>>>>>     on Sat, 18 Mar 2006 12:54:48 +0000 writes:

    PatBurns> In the details section for 'all.equal' (in the paragraph
    PatBurns> on complex values) it says 'all.numeric.numeric'.  I
    PatBurns> presume that should be 'all.equal.numeric'.

yes, thanks, fixed.

    PatBurns> When two integer vectors differ, it is possible to get
    PatBurns> overflow:

    >> set.seed(1)
    >> r1 <- .Random.seed
    >> set.seed(2)
    >> r2 <- .Random.seed
    >> all.equal(r1, r2)
    PatBurns> [1] "Mean relative  difference: NA"
    PatBurns> Warning message:
    PatBurns> NAs produced by integer overflow in: target - current

    PatBurns> A small change to 'all.equal.numeric' would fix that if it
    PatBurns> is felt to be worthwhile.

it is.  Thank you.  The fix will be in tomorrow's R-devel

Martin Maechler, ETH Zurich



[Rd] all.equal buglet(s)
Martin Maechler