[Rd] missing binaries in R-devel windows snapshot 78175
Bravington, Mark (Data61, Hobart)
M@rk@Br@v|ngton @end|ng |rom d@t@61@c@|ro@@u
Fri Apr 10 10:29:32 CEST 2020
Thanks all--- my fault again, this time for not reading the openssl::md5() documentation. Binaries all present and correct after all (on my Cylance-free machine), and checksums working as they should...
[Jeroen Ooms] > I think you're calculating the md5 of the filename, not the file. You need to use:
> openssl::md5(file("R-devel-win.exe"))
I am duly embarrassed...
[Martin Maechler] > or use base R's tools::md5sum(<local-file-name>) ... which has existed forever
[Gábor Csárdi] > Don't use tools::md5sum() in portable code, though, at least not just yet, because it is broken on non-ASCII filenames on Windows. (Fixed in R-devel.)
Indeed, I did use tools::md5sum(); it was the apparent difference between that and openssl::md5() that surprised me. I am a long-time fan of tools::md5sum(), and in fact it's used in a package of ours planned for release soon--- bit disconcerting to hear it's actually broken! However, I suspect R4.0 [ with fixed md5sum() ] will be released before our package sees the light of day.
Thanks again
Mark
Mark Bravington
CSIRO Marine Lab
Hobart
Australia
________________________________________
From: R-devel <r-devel-bounces using r-project.org> on behalf of Martin Maechler <maechler using stat.math.ethz.ch>
Sent: Friday, 10 April 2020 17:49
To: Jeroen Ooms
Cc: Bravington, Mark (Data61, Hobart); R-Devel-2
Subject: Re: [Rd] missing binaries in R-devel windows snapshot 78175
>>>>> Jeroen Ooms
>>>>> on Fri, 10 Apr 2020 08:54:39 +0200 writes:
> On Fri, Apr 10, 2020 at 2:42 AM Bravington, Mark (Data61,
> Hobart) <Mark.Bravington using data61.csiro.au> wrote:
>>
>> > On Thu, Apr 9, 2020 at 12:44 PM Bravington, Mark
>> (Data61, Hobart) > <Mark.Bravington using data61.csiro.au>
>> wrote:
>> > >
>> > > The "r-devel snapshot build" 78175 on Windows--- a
>> dot-exe installer--- seems to be missing a couple of
>> files in its bin/i386 folder: Rterm.exe and
>> Rgui.exe. Both are present in its bin/x64 folder (and in
>> the i386 folder for current R).
>>
>> From: Jeroen Ooms <jeroen using berkeley.edu> Sent: Thursday, 9
>> April 2020 21:32 To: Bravington, Mark (Data61, Hobart)
>> Cc: R-Devel-2 Subject: Re: [Rd] missing binaries in
>> R-devel windows snapshot 78175
>>
>>
>> > I just tested this and as far as I can tell there are
>> no missing > files. Are you sure there isn't a local
>> problem with your system > permissions or antivirus that
>> is removing the files?
>>
>> You're quite right--- my apologies. I've been Cylanced
>> (without it having the politeness to actually tell me,
>> grrrr). I tried again with the 78172 build that you used,
>> and the two dot-exe files are there immediately after
>> installation--- but 10 minutes later they're gone. One
>> question below about the md5 stuff, though:
>>
>> > Try to verify the md5 of the installer; some enterprise
>> firewalls are > tampering with downloads:
>>
>> >
>> openssl::md5(url('https://cran.r-project.org/bin/windows/base/R-devel-win.exe'))
>> >
>> readLines('https://cran.r-project.org/bin/windows/base/md5sum.txt.R-devel')
>>
>> Thanks for the tip. I did that, and both give the same
>> output. But:
>>
>> - If I run 'md5sum' on my local copy of the 78182
>> installer (ie the file I've just downloaded) I again get
>> the same signature as per your two lines. (It's not the
>> firewall, it's Cylance.)
>>
>> - Yet if I run 'openssl::md5( <local copy of installer>)'
>> I get a different signature!
> I think you're calculating the md5 of the filename, not
> the file. You need to use:
> openssl::md5(file("R-devel-win.exe"))
or use base R's tools::md5sum(<local-file-name>)
md5sum() has existed forever, but needs you to do the
download.file() step which is indirectly happening in
openssl::md5() also.
______________________________________________
R-devel using r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
More information about the R-devel
mailing list