Used at the end of 1.x in the example workflow in order to save the occurrence dataset and its associated eml metadata.
dataSaver(
path = NULL,
save_type = NULL,
occurrences = NULL,
eml_files = NULL,
file_prefix = NULL
)
Character. The main file path to look for data in.
Character. The file format in which to save occurrence and EML data. Either "R_file" or "CSV_file"
The occurrences to save as a data frame or tibble.
A list of the EML files.
Character. A prefix for the resulting output file.
This function saves both occurrence and EML data as a list when save_type = "R_File" or as individual csv files when save_type = "CSV_file".
if (FALSE) { # \dontrun{
dataSaver(path = tempdir(),# The main path to look for data in
save_type = "CSV_file", # "R_file" OR "CSV_file"
occurrences = Complete_data$Data_WebDL, # The existing datasheet
eml_files = Complete_data$eml_files, # The existing EML files
file_prefix = "Fin_") # The prefix for the file name
} # }