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

From: Henrik Bengtsson <hb_at_stat.berkeley.edu>
Date: Fri 28 Jul 2006 - 06:30:33 GMT


[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



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Jul 28 16:34:09 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 28 Jul 2006 - 16:26:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.