Learn R Programming

delma (version 0.1.2)

write_eml: 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)

Value

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

Arguments

x

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

file

Filename to write to

Examples

Run this code
# \dontshow{
.old_wd <- setwd(tempdir())
# }
source_file <- system.file("extdata", 
                           "bionet_metadata.Rmd",
                           package = "delma") 
df <- read_md(source_file)
write_eml(df, "example.xml")
# \dontshow{
setwd(.old_wd)
# }

Run the code above in your browser using DataLab