Only gz compressed files are supported over connections (using base::gzcon()), not zip archives. So this behavior is expected, you need to download zip files before opening them.
Thank you for your explanation. However, I think that the documentation should be updated to mention that point, for now, it's seems to be a little bit misleading :
Files ending in .gz, .bz2, .xz, or .zip will be automatically uncompressed.
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
lockbot
locked and limited conversation to collaborators
Sep 25, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
First of all, thanks a lot for readr !
I think I have found a weird behaviour when trying to retrieve a zipped CSV over HTTP (from data.gouv.fr).
read_delim('http://files.data.gouv.fr/sirene/sirene_2017002_E_Q.zip', ';')Returns :
And
read_file('http://files.data.gouv.fr/sirene/sirene_2017002_E_Q.zip')returns me a strange file content :
If I download the file and then open it from my hard drive (
read_delim('~/sirene_2017002_E_Q.zip', ';')), it works fine.Moreover, I have already open sucessfuly some CSV (non zipped) from data.gouv.fr with read_delim() function.
thanks in advance !
The text was updated successfully, but these errors were encountered: