This function accepts a filename and tries to return a valid function for reading it.
Details
guess_read_function understands the following file extensions:
rds with
readRDScsv, csv.gz, csv.xz with
utils::read.csvtsv, tsv.gz, tsv.xz with
utils::read.delimparquet with
arrow::read_parquettxt, txt.gz, txt.xz with
readLinesjson, json.gz, json.xz with
jsonlite::fromJSON
See also
Other pb_rw:
guess_write_function(),
pb_read(),
pb_write()