[Rd] R 3.0.0: wrong MD5 checksums for Windows?
Henrik Bengtsson
hb at biostat.ucsf.edu
Thu Apr 4 21:06:13 CEST 2013
I can reproduce this (same setup):
> require(tools);
> checkMD5sums(dir=R.home());
It's a '\n' -> '\r\n' issue:
> filename <- "etc/Rconsole";
> md5 <- readLines(file.path(R.home(), "MD5"));
> md5 <- grep(filename, md5, value=TRUE);
> md5 <- gsub(" .*", "", md5);
> print(md5);
[1] "35d6d6cf7957492f78f50c435e36f08e"
> pathname <- file.path(R.home(), filename);
> md5a <- md5sum(pathname);
> print(md5a);
C:/PROGRA~1/R/R-3.0.0patched/etc/Rconsole
"7436c369255f36aeacca8ab88b5f96c4"
> bfr <- readChar(pathname, nchars=1e6);
> bfr <- gsub("\r\n", "\n", bfr, fixed=TRUE);
> writeChar(bfr, eos=NULL, con="foo.txt");
> md5b <- md5sum("foo.txt")
> print(md5b);
foo.txt
"35d6d6cf7957492f78f50c435e36f08e"
> md5b == md5
foo.txt
TRUE
/Henrik
On Thu, Apr 4, 2013 at 11:38 AM, Tal Galili <tal.galili at gmail.com> wrote:
> Hello dear R-devel,
>
> When installing R 3.0.0 on Windows 7, and then running:
>
> require(tools)
> checkMD5sums(dir=R.home())
>
> I get the following massage:
> files ‘etc/Rconsole’, ‘etc/Rprofile.site’ have the wrong MD5 checksums
> [1] FALSE
>
> This happens when using the 32 and the 64 bit version of R.
> And was also reported by 2 other users on other machines, as can be seen in
> the comments to this post:
> http://www.r-statistics.com/2013/04/r-3-0-0-is-released-whats-new-and-how-to-upgrade/
>
> The R version was downloaded from this mirror:
> http://cran.rstudio.com/bin/windows/base/
> And installed on both the C and D drive on different computers (to rule-out
> any permission issues during installation).
>
>
>
> I hope I didn't miss anything,
> Tal
>
> ----------------Contact
> Details:-------------------------------------------------------
> Contact me: Tal.Galili at gmail.com |
> Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
> www.r-statistics.com (English)
> ----------------------------------------------------------------------------------------------
>
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
More information about the R-devel
mailing list