Skip to contents

This function creates the output directory if it doesn't exist and exports the data frame to a tab-delimited file.

Usage

export_output(x, file = output)

Arguments

x

data frame to be exported

file

path to the output file

Examples

export_output(x = data.frame(), file = "output/file.tsv")
#> 2024-07-04 15:04:54.103495 Directory output created. 
#> 2024-07-04 15:04:54.103656 ... 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"