hd_save_data()
saves either a tibble as CSV, TSV, RDS, or XLSX, or an R object
(for example a list) as RDS in a specified directory. If the directory does not exist,
it will be created automatically before saving the file. The recommended file type
for files that are going to be used in an R environment is RDS.
Examples
# Save a metadata dataframe as an RDS file
hd_save_data(example_metadata, "my_data/metadata.rds")
#> [1] "File saved as my_data/metadata.rds"
unlink("my_data", recursive = TRUE) # Clean up the created directory