eml_add_distribution | R Documentation |
Adds a landing page URL to the dataset, and corrects the metadata identifier by replacing the existing identifier with that which is passed. Note that this function constructs landing page URLs for the Arctic Data Center only and will not work correctly on other repositories.
eml_add_distribution(doc, identifier)
doc |
(emld) An EML document |
identifier |
(character) A pre-issued, unassigned identifier (as from |
doc (emld) An EML document with distribution added
## Not run:
library(EML)
d1c <- dataone::D1Client("STAGING", "mnTestARCTIC")
# read in any EML document
doc <- read_eml(system.file("extdata/strix-pacific-northwest.xml", package="dataone"))
# generate a doi
id <- generateIdentifier(d1c@mn, "doi")
doc <- eml_add_distribution(doc, id)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.