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-12-18 14:28:05 ... 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)