Read from or write to tabular files, with file format inferred from the file extension.
Source:R/utils.R
read_tabular_file.Rd
Read from or write to tabular files, with file format inferred from the file extension.
Arguments
- path_to_file
Path to the file to read/write. Must have extension
.tsv
,.csv
, or.parquet
(not case-sensitive).- ...
Additional keyword arguments passed to the file reader/writer function, which will be one of
readr::read_csv()
/readr::write_csv()
,readr::read_tsv()
/readr::write_tsv()
, andarrow::read_parquet()
/arrow::write_parquet()
, depending on the file format.- table
Table to write (
write_tabular_file
only).
Value
For read_tabular_file
, the result of
reading in the file, as a
tibble
. For write_tabular_file
,
nothing, saving the tabular to disk as a side effect.