Re: [R] md5sum issues

2021-02-04 Thread Ivan Calandra
Tim -Original Message- From: R-help On Behalf Of Ivan Calandra Sent: Wednesday, February 3, 2021 11:26 AM To: r-help@r-project.org Subject: Re: [R] md5sum issues [External Email] Dear Jeff, If I understood you correctly, it makes sense that I explain more about my goal here: I am trying to

Re: [R] md5sum issues

2021-02-03 Thread Jeff Newmiller
Well, you can use binary input files like RDS, qs, or parquet. But you already have your code and data in Git, so checking your input is redundant... just put in a binary output reference file and a test that verifies it. On February 3, 2021 8:25:33 AM PST, Ivan Calandra wrote: >Dear Jeff, > >I

Re: [R] md5sum issues

2021-02-03 Thread Duncan Murdoch
On 03/02/2021 11:15 a.m., Jeff Newmiller wrote: This CR vs LF vs CRLF newline discrepancy has been around since the 70s and the CP/M operating system. And it remains an issue in over-the-wire internet text protocols today, which actually use the CRLF version like Windows. Sorry, UNIX... world

Re: [R] md5sum issues

2021-02-03 Thread Ivan Calandra
Dear Jeff, If I understood you correctly, it makes sense that I explain more about my goal here: I am trying to find ways to have analyses that are as reproducible as possible (knowing that it is not going to be perfect). One part is to show which file(s) I use as input and what output was c

Re: [R] md5sum issues

2021-02-03 Thread Jeff Newmiller
This CR vs LF vs CRLF newline discrepancy has been around since the 70s and the CP/M operating system. And it remains an issue in over-the-wire internet text protocols today, which actually use the CRLF version like Windows. Sorry, UNIX... world domination of LF encoding failed. The problem wit

Re: [R] md5sum issues

2021-02-03 Thread Ivan Calandra
Thank you very much Duncan for your help. I'll try that. Best, Ivan -- Dr. Ivan Calandra TraCEr, laboratory for Traceology and Controlled Experiments MONREPOS Archaeological Research Centre and Museum for Human Behavioural Evolution Schloss Monrepos 56567 Neuwied, Germany +49 (0) 2631 9772-243 h

Re: [R] md5sum issues

2021-02-03 Thread Duncan Murdoch
On 03/02/2021 4:42 a.m., Ivan Calandra wrote: Thank you Ivan and Duncan for your help. I understand your point Duncan, but the thing is that I do have an issue here. Is it then due to RStudio or even Windows? If it is, I can forget about a solution on that end, so I would focus on what I can do,

Re: [R] md5sum issues

2021-02-03 Thread Ivan Calandra
Thank you Ivan and Duncan for your help. I understand your point Duncan, but the thing is that I do have an issue here. Is it then due to RStudio or even Windows? If it is, I can forget about a solution on that end, so I would focus on what I can do, and this Git setting seems to be the best p

Re: [R] md5sum issues

2021-02-03 Thread Duncan Murdoch
On 03/02/2021 2:14 a.m., Ivan Krylov wrote: On Tue, 2 Feb 2021 17:01:05 +0100 Ivan Calandra wrote: This happens to all text-based files (Rmd, MD, CSV...) but not to non-editable files (PDF, XLSX...). This is probably caused by Git helpfully converting text files from LF (0x10) line endings t

Re: [R] md5sum issues

2021-02-02 Thread Ivan Krylov
On Tue, 2 Feb 2021 17:01:05 +0100 Ivan Calandra wrote: > This happens to all text-based files (Rmd, MD, CSV...) but not to > non-editable files (PDF, XLSX...). This is probably caused by Git helpfully converting text files from LF (0x10) line endings to CR LF (0x13 0x10) when checking out the r

Re: [R] md5sum issues

2021-02-02 Thread Ivan Calandra
Thank you Jeff for the pointer. If it's not an R issue, I guess it will be difficult to solve... But maybe there is a workaround using R, like using another function or editing the files...? Does anyone have any idea? Ivan -- Dr. Ivan Calandra TraCEr, laboratory for Traceology and Controlled

Re: [R] md5sum issues

2021-02-02 Thread Jeff Newmiller
Sounds like a newline discrepancy issue. Highly unlikely to be an R issue. On February 2, 2021 8:01:05 AM PST, Ivan Calandra wrote: >Dear useRs, > >I have some kind of a weird issue with md5sum() and I'm not sure where >I >should start. > >I have a repository on GitHub, with a local Git installa

[R] md5sum issues

2021-02-02 Thread Ivan Calandra
Dear useRs, I have some kind of a weird issue with md5sum() and I'm not sure where I should start. I have a repository on GitHub, with a local Git installation and connected with RStudio. I am working on Windows 10 and a colleague of mine works on Linux. We both pull the latest commits of al