This function accepts a filename and tries to return a valid function for writing to it.
Details
guess_write_function understands the following file extensions:
rds with
saveRDScsv, csv.gz, csv.xz with
utils::write.csvtsv, tsv.gz, tsv.xz with a modified
utils::write.csvwhere sep is set to"\t"parquet with
arrow::write_parquettxt, txt.gz, txt.xz with
writeLinesjson, json.gz, json.xz with
jsonlite::write_json
See also
Other pb_rw:
guess_read_function(),
pb_read(),
pb_write()