This function creates the output directory if it doesn't exist and exports the data frame to a tab-delimited file.
Examples
export_output(x = data.frame(), file = "output/file.tsv")
#> Directory output created.
#> 2024-11-22 11:24:02 ... path to export is output/file.tsv
#> Warning: Input has no columns; creating an empty file at 'output/file.tsv' and exiting.
#> [1] "output/file.tsv"
unlink("output", recursive = TRUE)