Closed conrad-mac closed 4 years ago
Thank you and great catch! You are right, download.file does not switch to binary on .xlsx files. I applied your fix. Can you check whether it works for you and then we can close the issue.
No problem. I can confirm this is fixed.
Great. Thanks again!
Hi,
First of all, thanks for all your work in standing up this repository.
I am having an issue running
download_acaps_npi_data()
- I get the following error:Error: Evaluation error: error -103 with zipfile in unzGetCurrentFileInfo
. I narrowed it down toThe downloaded excel sheet is corrupted so won't open. I'm on Windows, so I think the issue is that the mode for
utils::download.file()
needs to be set to "wb" (this doesn't seem to be an issue for Unix-like OS - which I assume you're on). I.e.Kind regards