A wrapper for data.table::fwrite to write file to drive.

write_data(data, filename)

Arguments

data

Data to write. If class of data is data.frame or data.table, then write_data will fwrite. If class of data is a list, write_data will assume that data is a phiplist and write the second through final elements as separate files.

filename

Filename or filenames to write.