emld (version 0.5.1)

as_emld: Coerce an EML file or object into an emld object.

Description

Coerce an EML file or object into an emld object.

Usage

as_emld(x, from = c("guess", "xml", "json", "list"))

Arguments

x

path to an EML file

from

explicit type for the input format. By default, will attempt to guess the format, but it always safer to specify the input format. This is essential for literal text strings or raw vectors where the type cannot be guessed by the R object class or file extension of the input.

Value

an emld object

Examples

Run this code
# NOT RUN {
 hf205 <- system.file("extdata/hf205.xml", package="emld")
 as_emld(hf205)
# }

Run the code above in your browser using DataCamp Workspace