create_EML.Rd
Create an EML package-compatible XML list tree for an EML document, ready to validate and write to .xml file.
create_EML(meta_list, entity_list, dataset_id, file_dir = NULL)
meta_list | (list) A list of dataframes containing metadata returned by |
---|---|
entity_list | (character) A list of entities returned by |
dataset_id | (numeric) A dataset ID. |
file_dir | (character) Path to directory containing flat files (abstract and method documents). Defaults to "" or current R working directory. |
(list) An EML package-compatible XML list tree. Supply this list object to eml_validate
and write_eml
to, in order, validate and write to .xml file.
# NOT RUN { # continued from \code{\link{get_meta}} and \code{\link{create_entity_all}} EML <- create_EML(meta_list = metadata, entity_list = entities, dataset_id = 1, license_path = here::here("documents", "license.docx")) # }