The create_attributes_table()
function allows editing of
an attributes table, factor table, or custom units table in a Shiny
environment.
Example:
The return_eml_units()
function uses the udunits2 unit
library to format an inputted unit into an EML unit form.
Example:
A complete data package requires that at minimum one creator includes
an associated ORCID. The add_creator_id()
function allows
you to add an ORCID or reference ID to any creator in the EML.
Example:
eml_path <- file.path(system.file(package = "datamgmt"), "dummy_meta_full.xml")
eml <- EML::read_eml(eml_path_original)
add_creator_id(eml, orcid = "https://orcid.org/WWWW-XXXX-YYYY-ZZZZ")
eml <- eml %>%
add_creator_id(surname = "high-stakes",
orcid = "https://orcid.org/0000-1234-5678-4321",
id = "henrietta")
#use references to add updated contact info to Henrietta's other roles
eml@dataset@contact[[1]] <- new("contact", reference = "henrietta")
eml@dataset@metadataProvider[[1]] <- new("metadataProvider", reference = "henrietta")