Read a tabular file to a tibble, inferring format from the file extension if it is not specified.
Source:R/utils.R
read_tabular_file.Rd
Read a tabular file to a tibble, inferring format from the file extension if it is not specified.
Arguments
- path_to_file
Path to the file to read.
- file_format
Format of the file to read. One of
"tsv"
,"csv"
,"parquet"
. IfNULL
, will be inferred from the file extension. DefaultNULL
.- ...
Additional keyword arguments passed to the file reader function, which will be one of
readr::read_csv()
,readr::read_tsv()
, andarrow::read_parquet()
, depending on thefile_format
.
Value
The result of reading in the file, as a
tibble
.