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

Value

The path of the exported 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)