Skip to contents

Reads a tabular `.parquet` file specified by `name` from a directory defined by `dir_path`.

Usage

here_read_arrow(name, dir_path = NULL, quiet = FALSE, ..., lazy = FALSE)

Arguments

name

Character string specifying the name of the Parquet file to be read (without the ".parquet" extension).

dir_path

Character string specifying the directory path from which the file will be read. If NULL (default), uses `push_mods`.

quiet

Logical. If TRUE, suppresses console output. Default is FALSE.

...

Additional arguments passed to `arrow::read_parquet()` in eager mode. Leave empty in lazy mode and select or filter the returned dataset instead.

lazy

Logical. If TRUE, open an Arrow Dataset without reading its rows. Apply filters, projections or validity expressions before collecting data. The default FALSE retains the existing eager Parquet reader.

Value

The usual Parquet result in eager mode, or an Arrow Dataset in lazy mode.

Examples

if (FALSE) { # \dontrun{
my_df <- here_read_arrow("my_dataset")
} # }