Skip to content
Back to formatted view

Raw Message

Message-ID: <AM0PR01MB403370D83D731D4FB27A49C1D5600@AM0PR01MB4033.eurprd01.prod.exchangelabs.com>
Date: 2020-07-13T10:40:58Z
From: Berry Boessenkool
Subject: [R-pkg-devel] mode='wb' in download.file()
In-Reply-To: <1167939014.100333238.1594632677953.JavaMail.zimbra@univ-fcomte.fr>

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:
https://github.com/brry/rdwd/issues/20

Thanks,
Berry



________________________________
From: R-package-devel <r-package-devel-bounces at r-project.org> on behalf of Paul SAVARY <paul.savary at univ-fcomte.fr>
Sent: Monday, July 13, 2020 11:31
To: Rainer M Krug <Rainer at krugs.de>
Cc: r-package-devel <r-package-devel at 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
Cheers

	[[alternative HTML version deleted]]