Re: [Rd] Including mode='wb' in download.file() for .xlsx files on Windows ?

2025-08-10 Thread Hernando Cortina
Thank you Avraham, .xlsx are zipped xml files so wb is required for it to be readable. Kind regards Hernando From: R-devel on behalf of Avraham Adler Sent: Sunday, August 10, 2025 2:52:49 PM To: Paul McQuesten Cc: R-devel ; Hernando Cortina Subject: Re: [Rd]

[Rd] Issues with tempdir() using short path names

2025-08-10 Thread Duncan Murdoch
I recently found out about Paul Murrell's excellent xdvir package that renders LaTeX in a graphics device. I thought this would be useful and put a wrapper around the latexGrob() function into rgl. Testing it on Github workflows worked fine on Ubuntu and MacOS runners, but failed on Windows.

Re: [Rd] Including mode='wb' in download.file() for .xlsx files on Windows ?

2025-08-10 Thread Avraham Adler
If I recall correctly, xlsx files are XML. It is the xls/xlsb files which are binary. https://learn.microsoft.com/en-us/openspecs/office_standards/ms-xlsx/2c5dee00-eff2-4b22-92b6-0738acd4475e Sent from my iPhone > On Aug 10, 2025, at 2:38 PM, Paul McQuesten wrote: > > Perhaps it would be si

Re: [Rd] Including mode='wb' in download.file() for .xlsx files on Windows ?

2025-08-10 Thread Paul McQuesten
Perhaps it would be simpler, and more future-proof, for R to always download as binary. Are there any modern consumers of text files that are bothered by '\r\n'? Or even Macintosh '\r' line terminators? On Sun, Aug 10, 2025 at 1:22 PM Hernando Cortina wrote: > Yes, .docx and .pptx are part of th

[Rd] Including mode='wb' in download.file() for .xlsx files on Windows ?

2025-08-10 Thread Hernando Cortina
Hello all, regarding download.file(): On Windows, if mode is not supplied (missing()) and url ends in one of ‘⁠.gz⁠’, ‘⁠.bz2⁠’, ‘⁠.xz⁠’, ‘⁠.tgz⁠’, ‘⁠.zip⁠’, ‘⁠.jar⁠’, ‘⁠.rda⁠’, ‘⁠.rds⁠’, ‘⁠.RData⁠’ or ‘⁠.pdf⁠’, mode = "wb" is set so that a binary transfer is done to help unwary users. May I sugge

Re: [Rd] overriding built in Rbuildignore values

2025-08-10 Thread Ivan Krylov via R-devel
On Thu, 7 Aug 2025 16:57:20 -0500 Dirk Eddelbuettel wrote: > I trust you checked that 'perl = TRUE' applies also to these entries > from tools:::get_exclude_patterns() ? It does: tools:::inRbuildignore() uses perl = TRUE and I've tested the pattern in an .Rbuildignore file with an older version