From hb at stat.berkeley.edu  Fri Jul 28 08:30:33 2006
From: hb at stat.berkeley.edu (Henrik Bengtsson)
Date: Thu, 27 Jul 2006 23:30:33 -0700
Subject: [Rd] Package digest broken under R v2.4.0 devel
Message-ID: <59d7961d0607272330m5bb3613bvdef3fb70104cb6b9@mail.gmail.com>

[cc:ing to the maintainer of digest]

FYI, package 'digest' (v0.2.1 2005/11/04 04:45:53) generates the same
output regardless of input with R v2.4.0 devel (2006-07-25 r38698).
Starting a vanilla R session you get:

> library(digest)
> digest(1)
[1] "3416a75f4cea9109507cacd8e2f2aefc"
> digest(2)
[1] "3416a75f4cea9109507cacd8e2f2aefc"
> digest(rnorm(10))
[1] "3416a75f4cea9109507cacd8e2f2aefc"

It works as expected with R v2.3.1 patched (2006-07-25 r38698):
> library(digest)
> digest(1)
[1] "577e0eb2f3253fc5a8c4a287f7c10e7f"
> digest(2)
[1] "75eb91f4559682af50c21212d0dc013b"

digest() uses serialize() internally, but it has nothing to do with
that.  I managed to track it down to the call to .Call("digest", ...).

BTW, thanks for a very useful package.

Henrik



[Rd] Package digest broken under R v2.4.0 devel
Henrik Bengtsson