Skip to contents

Read metadata

Usage

read_metadata(packageId, env = "production")

Arguments

packageId

(character) Data package identifier

env

(character) Repository environment. Can be: "production", "staging", or "development".

Value

(xml_document) EML metadata document. See the emld library for more on working with EML as a list or JSON-LD. See the xml2 library for working with EML as XML.

Examples

if (FALSE) {

# Read metadata
eml <- read_metadata("edi.100.1")
eml
#> {xml_document}
#> <eml packageId="edi.100.1" system="https://pasta.edirepository.org"   ...
#> [1] <access authSystem="https://pasta.edirepository.org/authenticatio ...
#> [2] <dataset>\n  <alternateIdentifier system="https://doi.org">doi:10 ...
}