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-boun...@r-project.org> on behalf of Paul 
SAVARY <paul.sav...@univ-fcomte.fr>
Sent: Monday, July 13, 2020 11:31
To: Rainer M Krug <rai...@krugs.de>
Cc: r-package-devel <r-package-devel@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]]

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to