Returns a sentence, ready to paste into the methods section of a paper, that credits PubMed and cites the two articles on EpiBibR:
Warin, T. (2020). Global Research on Coronaviruses: An R Package. Journal of Medical Internet Research, 22(8), e19615.
Warin, T. (2021). Global Research on Coronaviruses: Metadata-Based Analysis for Public Health Policies. JMIR Medical Informatics, 9(11), e31510.
Given the data you analysed, the sentence also gives the number of references, the years they cover and the date of the EpiBibR data.
In R Markdown or Quarto, write the sentence inline
(`r EpiBib_cite(data, bib = "references.bib", markdown = TRUE)`):
it updates with your data, and the two articles are added to your
reference list.
Arguments
- data
Optional data frame from an EpiBibR function: the references you analysed.
- bib
Optional path to a BibTeX file. The two articles are added to it (keys
warin2020andwarin2021) unless they are already there; the file is created if needed. Nothing else in the file is changed.- markdown
If
TRUE, cite the articles with Pandoc citation keys ([@warin2020; @warin2021]), which R Markdown and Quarto turn into citations in your reference style. Use withbib.
Examples
EpiBib_cite()
#> Bibliographic data were retrieved from PubMed, courtesy of the U.S.
#> National Library of Medicine, with the EpiBibR R package, version 0.4.0
#> (Warin, 2020, 2021).
# \donttest{
EpiBib_cite(EpiBib_title("long covid", years = 2021))
#> Bibliographic data were retrieved from PubMed, courtesy of the U.S.
#> National Library of Medicine, with the EpiBibR R package, version 0.4.0
#> (Warin, 2020, 2021). The analysis covers 231 references published in
#> 2021 (EpiBibR data as of 2026-11-27).
# }