Learn R Programming

arrow (version 8.0.0)

make_readable_file: Handle a range of possible input sources

Description

Handle a range of possible input sources

Usage

make_readable_file(file, mmap = TRUE, compression = NULL, filesystem = NULL)

Arguments

file

A character file name, raw vector, or an Arrow input stream

mmap

Logical: whether to memory-map the file (default TRUE)

compression

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.

filesystem

If not NULL, file will be opened via the filesystem$OpenInputFile() filesystem method, rather than the io module's MemoryMappedFile or ReadableFile constructors.

Value

An InputStream or a subclass of one.