Handle a range of possible input sources
make_readable_file(file, mmap = TRUE, compression = NULL)
A character file name, raw
vector, or an Arrow input stream
Logical: whether to memory-map the file (default TRUE
)
If the file is compressed, created a CompressedInputStream
with this compression codec, either a Codec or the string name of one.
If NULL
(default) and file
is a string file name, the function will try
to infer compression from the file extension.
An InputStream
or a subclass of one.