[R-pkg-devel] mode='wb' in download.file()

Berry Boessenkool berryboe@@enkoo| @end|ng |rom hotm@||@com
Mon Jul 13 12:40:58 CEST 2020

On a related note:

I also need to set mode="wb" to download binary files on Windows in my rdwd package.
I'm considering calling download.file() with that mode as the default.
Is there any problem with that, potentially on other OS or for non-binary files?

Feel free to comment here to not crowd the mailing list:


From: R-package-devel <r-package-devel-bounces using r-project.org> on behalf of Paul SAVARY <paul.savary using univ-fcomte.fr>
Sent: Monday, July 13, 2020 11:31
To: Rainer M Krug <Rainer using krugs.de>
Cc: r-package-devel <r-package-devel using r-project.org>
Subject: Re: [R-pkg-devel] Proper CRAN way - How to handle dependency of java jar file?

Thanks you too.

That is also what I am doing. Note that I am downloading jar files into a directory created in rappdirs::user_data_dir() using the command download.file(url, ...).

oaded jar file is corrupted and cannot be used because a text file is created in which \n are converted into \r\n, which does not make sens for a binary file.

I hope it can help

	[[alternative HTML version deleted]]

More information about the R-package-devel mailing list