Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.


arrow

Integration to 'Apache' 'Arrow'

v4.0.0.1
Apache License (>= 2.0)
Authors
Neal Richardson [aut, cre], Ian Cook [aut], Jonathan Keane [aut], Romain François [aut] (<https://orcid.org/0000-0002-2444-4226>), Jeroen Ooms [aut], Javier Luraschi [ctb], Jeffrey Wong [ctb], Apache Arrow [aut, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.