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:
# 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: