Handy wrapper functions to export data tables that then returns the file path of the exported file. This can be useful in applications such as within tarchetypes::tar_file
.
Arguments
- x
a data frame or tibble to export
- file
file or connection to write to
- ...
arguments to pass to
readr::write_csv
orxlsx::write.xlsx