View source: R/build_descriptor.R
build_descriptor | R Documentation |
Creates a metadata record for the data catalog
build_descriptor(path, data_id, bibtex = NULL, preview = NULL)
path |
Directory where to write metadata record. |
data_id |
Dataset unique identifier. |
bibtex |
Path to bibtex with dataset references. Optional. |
preview |
Path to preview image. |
The function creates a directory in the specified path
named as the data_id. Within it, you will find a yaml file where
you can manually edit the metadata for the new record. If a bibtex
and/or a preview image are provided, the function will copy them
into the new directory after testing their validity. Once filled, the
yaml file can be compiled into a metadata record using
compile_metadata
.
A Rmarkdown file that can be fed into the MAS data catalog. Optional.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.