Skip to contents

createCollectionMetadataTemplate() writes a commented YAML template with the metadata of a collection of MR1 records on Zenodo: collection ID, level (owner or community), title, description, version, owner, licence, keywords, contributors, members (DOIs of the records in the collection), related identifiers and suggested citation. Fill in the template and pass its path to the metadata argument of uploadCollectionToZenodo().

Usage

createCollectionMetadataTemplate(filePath, overwrite = FALSE)

Arguments

filePath

Path of the YAML file to write.

overwrite

logical. If TRUE, an existing file is overwritten. Default is FALSE.

Value

The path of the written file, invisibly.

Author

Birgen Haest

Examples

# Write the collection metadata template
# ===========================================================================
metadataFile = file.path(tempdir(), "SOI_BirdScanMR1_collection.yaml")
createCollectionMetadataTemplate(filePath = metadataFile, overwrite = TRUE)