A metadata statement lists the owner of the dataset, how it was collected,
and how it can be used (i.e. its' licence). This function simply reads
converts metadata stored in a markdown file, converts it to xml, and saves it
in the destination
file.
Usage
build_metadata(source = "metadata.md", destination = "./data/eml.xml")
Arguments
- source
A metadata file stored in markdown format (.md
). Defaults
to metadata.md
, which is the same as is created by use_metdata()
- destination
A file where the result should be saved. Defaults to
data/eml.xml
.
Value
Does not return an object to the workspace; called for the side
effect of building a file named meta.xml
in the data
directory.
Details
This function is a fairly shallow wrapper on top of functionality build
in the paperbark
package, particularly read_md()
and write_eml()
. You can
use that package to gain greater control, or to debug problems, should you
wish.