View source: R/create_citation.R
create_citation | R Documentation |
create_citation generates a EML entity of type bibtex citation that can be included in a EML literatureCited entity.
create_citation(doi)
doi |
(character) quoted DOI of publication |
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.
EML citation entity is returned
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.