You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where the other zip functions create connections, readr::zipfile attempts to decompress the file file, which doesn't exist because we're trying to write it.
readr::write_file(charToRaw(letters), "./test.zip")
#> Error in utils::unzip(path, list = TRUE): zip file './test.zip' cannot be opened
Ah sorry if I was unclear. I don't want to zip data. I have the raw data representing a zip file in the body of a http request. I can't write that to a .zip file on disk.
My work around was to write it with a different extension, then change the extension to zip after.
write_file
cannot write .zip files. The issue seems to be in this switch statement instandardise_path
:readr/R/source.R
Line 161 in 31236cf
Where the other zip functions create connections,
readr::zipfile
attempts to decompress the file file, which doesn't exist because we're trying to write it.Created on 2021-07-27 by the reprex package (v2.0.0)
The text was updated successfully, but these errors were encountered: