Skip to content
Prev 55152 / 63424 Next

download.file does not process gz files correctly (truncates them?)

On Thu, May 3, 2018 at 2:42 PM, Henrik Bengtsson
<henrik.bengtsson at gmail.com> wrote:
I'd like to second this feature request. This default behaviour is
unexpected and often leads to r scripts that were written on
mac/linux, to produce corrupted files on windows, checksum mismatches,
etc.

Even for text files, the default should be to download the file as-is.
Trying to "fix" line-endings should be opt-in, never the default.
Downloading a file via a browser or ftp client on windows also doesn't
change the file, why should R?
On Thu, May 3, 2018 at 3:02 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
True but I don't think this is relevant. The same holds e.g. for the R
files in source packages, which also have unix line endings. Most
Windows users will use an actual editor that understands both types of
line endings, or can convert between the two.

Downloading-file should do just that.

Thread (25 messages)

Joris Meys download.file does not process gz files correctly (truncates them?) May 2 Joris Meys download.file does not process gz files correctly (truncates them?) May 3 Martin Morgan download.file does not process gz files correctly (truncates them?) May 3 Joris Meys download.file does not process gz files correctly (truncates them?) May 3 Henrik Bengtsson download.file does not process gz files correctly (truncates them?) May 3 Duncan Murdoch download.file does not process gz files correctly (truncates them?) May 3 Martin Morgan download.file does not process gz files correctly (truncates them?) May 3 Jeroen Ooms download.file does not process gz files correctly (truncates them?) May 3 Joris Meys download.file does not process gz files correctly (truncates them?) May 3 Henrik Bengtsson download.file does not process gz files correctly (truncates them?) May 3 Tomas Kalibera download.file does not process gz files correctly (truncates them?) May 3 Martin Maechler download.file does not process gz files correctly (truncates them?) May 4 Joris Meys download.file does not process gz files correctly (truncates them?) May 4 Martin Maechler download.file does not process gz files correctly (truncates them?) May 4 Henrik Bengtsson download.file does not process gz files correctly (truncates them?) May 6 Joris Meys download.file does not process gz files correctly (truncates them?) May 7 Hugh Parsonage download.file does not process gz files correctly (truncates them?) May 7 Gabriel Becker download.file does not process gz files correctly (truncates them?) May 7 Hadley Wickham download.file does not process gz files correctly (truncates them?) May 8 Hadley Wickham download.file does not process gz files correctly (truncates them?) May 8 Tomas Kalibera download.file does not process gz files correctly (truncates them?) May 9 Duncan Murdoch download.file does not process gz files correctly (truncates them?) May 9 Peter Dalgaard download.file does not process gz files correctly (truncates them?) May 9 Dirk Eddelbuettel download.file does not process gz files correctly (truncates them?) May 9 Joris Meys download.file does not process gz files correctly (truncates them?) May 12