write_eml: Write an EML-formatted metadata document

View source: R/write_eml.R

write_emlR Documentation

Write an EML-formatted metadata document

Description

write_eml() writes a tibble, list or xml_document to an EML file. Note that EML files always have the file extension .xml.

Usage

write_eml(x, file)

Arguments

x

Object of any class handled by delma; i.e. tbl_df, list or xml_document.

file

Filename to write to

Value

Doesn't return anything; called for the side-effect of writing the specified EML file to disk.

Examples


source_file <- system.file("extdata", 
                           "bionet_metadata.Rmd",
                           package = "delma") 
df <- read_md(source_file)
write_eml(df, "example.xml")


delma documentation built on June 8, 2025, 1:56 p.m.