create_citation: create EML entity of type bibtex citation

View source: R/create_citation.R

create_citationR Documentation

create EML entity of type bibtex citation

Description

create_citation generates a EML entity of type bibtex citation that can be included in a EML literatureCited entity.

Usage

create_citation(doi)

Arguments

doi

(character) quoted DOI of publication

Details

create_citation generates a EML entity of type bibtex citation by harvesting publication details using the rcrossref library. The function accepts only a DOI. Citations can be manually constructed if a valid DOI is not available for the target material or if it is not indexed by crossref but this function is specific to refernces with valid DOIs.

Value

EML citation entity is returned

Examples

## Not run: 

# Sartory, D.P., Grobbelaar, J.U. Extraction of chlorophyll a from
# freshwater phytoplankton for spectrophotometric analysis. Hydrobiologia 114,
# 177–187 (1984). https://doi.org/10.1007/BF00031869

sartory <- create_citation("https://doi.org/10.1007/BF00031869")

citations <- list(
  citation = list(
    sartory
  )
)

dataset$literatureCited <- citations


## End(Not run)


CAPLTER/capeml documentation built on Oct. 1, 2024, 7:38 a.m.