build_descriptor.Rd
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. |
A Rmarkdown file that can be fed into the MAS data catalog. Optional.
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
.