Skip to contents

Dispatches on file extension: .csv uses utils::read.csv(), .parquet uses arrow::read_parquet(), .rda/.rdata loads the first data frame found in the file.

Usage

read_upload_file(path, name)

Arguments

path

Path to the temporary uploaded file.

name

Original filename (used for extension detection).

Value

A data frame, or stops with an informative error.