Save inputted data out to a data file if requested and return it to the console, invisible-ly..
write_data(
x = NULL,
main = ".",
data_sub = "data",
save = TRUE,
filename = NULL,
overwrite = TRUE,
quiet = FALSE
)data.frame or YAML list to be written out.
character value of the name of the main component of the directory tree.
character value defining the data subdirectory of the portalcasting directory tree.
logical indicator controlling if x should be saved out.
character name of the file for saving x.
logical indicator of if the file should be overwritten if it exists.
logical indicator if messages should be quieted.
x as input, invisible-ly.