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
Given a g'zipped file that does not have a file extension, readr complains that it has detected an invalid multibyte string. Note that in contrast, vroom correctly detects the gzip type:
readr::write_tsv(mtcars, "mtcars.tsv.gz")
fs::file_copy("mtcars.tsv.gz", "mtcars")
# worksvroom::vroom("mtcars")
# error invalid multi-byte stringreadr::read_tsv("mtcars")
# works once we manually use gzfile, ickreadr::read_tsv(gzfile("mtcars"))
## works with extension from file namereadr:::read_tsv("mtcars.tsv.gz")
My understanding is that it would be best for readr to identify the compression from the multibyte string instead of relying on the convention of a filename extension.
The text was updated successfully, but these errors were encountered:
Given a g'zipped file that does not have a file extension,
readr
complains that it has detected an invalid multibyte string. Note that in contrast, vroom correctly detects the gzip type:My understanding is that it would be best for readr to identify the compression from the multibyte string instead of relying on the convention of a filename extension.
The text was updated successfully, but these errors were encountered: