export_zenodo: export_zenodo

View source: R/zen4R_exporter.R

export_zenodoR Documentation

export_zenodo

Description

export_zenodo allows to export a Zenodo record, identified by its DOI or concept DOI, using one of the export formats supported by Zenodo.

Usage

export_zenodo(doi, filename, format, append_format = TRUE, logger = NULL)

Arguments

doi

a Zenodo DOI or concept DOI

filename

a base file name (without file extension) to export to.

format

a valid Zenodo export format among the following: BibTeX, CSL, DataCite, DublinCore, DCAT, JSON, JSON-LD, GeoJSON, MARCXML.

append_format

wether format name has to be appended to the filename. Default is TRUE (for backward compatibility reasons). Set it to FALSE if you want to use only the filename.

logger

a logger to print Zenodo API-related messages. The logger can be either NULL, "INFO" (with minimum logs), or "DEBUG" (for complete curl http calls logs)

Value

the exported file name (with extension)

Examples

## Not run: 
 export_zenodo("10.5281/zenodo.2547036", filename = "test", format = "BibTeX", append_format = F)

## End(Not run)
                

zen4R documentation built on Sept. 20, 2023, 9:06 a.m.