EpiBibR is an R package to easily access bibliographic data on COVID-19 and other coronaviruses (SARS, MERS). It gives R users the citation data of more than 540,000 PubMed references (journal articles, letters, news, reviews…) published from 1949 to today, rebuilt from PubMed every month, and ready-made charts that answer the common questions about this literature.
The references are collected from PubMed, a free resource developed and maintained by the National Center for Biotechnology Information (NCBI) at the U.S. National Library of Medicine (NLM). We use the query of the Allen Institute for AI’s CORD-19 project:
"COVID-19" OR Coronavirus OR "Corona virus" OR "2019-nCoV" OR "SARS-CoV" OR "MERS-CoV"
OR "Severe Acute Respiratory Syndrome" OR "Middle East Respiratory Syndrome"
EpiBibR can search by author, first author’s country, keyword in the title or abstract, year and journal. The columns follow the conventions of the bibliometrix package, so the data can go straight into a bibliometric analysis.
If EpiBibR helps your work, please cite it: Warin (2020) and Warin (2021).
Practical usage
Installation
# install.packages("remotes")
remotes::install_github("warint/EpiBibR")Data by year
The data are stored as one file per publication year on the package’s GitHub Releases. A file is downloaded the first time you need it and cached on disk, so later sessions only download years that have been updated since.
Every function has a years argument:
-
years = NULL(the default): the current year; -
years = 2020:2022: specific years; -
years = "all": everything (about 540,000 references, 93 MB to download the first time and about 1 GB in memory).
To see what is available:
EpiBib_years()
#> year records size_mb updated
#> ...To download fresh copies, use
EpiBib_references(refresh = TRUE); to delete the cache, use
EpiBib_clear_cache().
Data, licence and attribution
EpiBibR redistributes PubMed citation data: authors, titles, journals, dates, identifiers, MeSH terms, keywords and affiliations. NLM provides these data free of charge, with no licence agreement, under its terms and conditions:
- Attribution: citation data courtesy of the U.S. National Library of Medicine. Every EpiBibR chart carries this credit in its caption.
-
Currency: the data are rebuilt monthly and may not
reflect the most current data available from NLM.
EpiBib_years()shows when each year was last updated. - No endorsement: EpiBibR is not endorsed by NLM.
Abstracts are not redistributed, because NLM notes
that they may be protected by publisher copyright.
EpiBib_abstract() searches titles and abstracts live on
PubMed, and EpiBib_add_abstracts() retrieves the abstract
texts from PubMed for your own use.
Records are filed by their print publication year, so a few articles already scheduled for future issues appear under next year. Book chapters (NCBI Bookshelf) are not included.
Data Summary
| Field Tag | Description |
|---|---|
| AU | Authors |
| TI | Document Title |
| PY | Publication Year |
| DT | Document Type |
| MESH | Medical Subject Headings (MeSH) |
| TC | Times Cited (not available from PubMed: NA) |
| SO | Journal (full title) |
| J9 | Journal abbreviation (NLM) |
| JI | ISO journal abbreviation |
| DI | Digital Object Identifier (DOI) |
| ISSN | ISSN |
| VOL | Volume |
| ISSUE | Issue Number |
| LT | Language |
| C1 | Author affiliations |
| RP | First author’s affiliation |
| ID | PubMed ID |
| DE | Authors’ Keywords |
| UT | Unique Article Identifier (PubMed ID) |
| AU_CO | Country of the first author’s affiliation |
| DB | Bibliographic Database |
How-To
Retrieve bibliographic data
EpiBib_data <- EpiBib_references() # current year
EpiBib_2020 <- EpiBib_references(years = 2020) # one year
EpiBib_all <- EpiBib_references(years = "all") # everythingSearch by author
For example, all the articles written by Philippe Colson:
colson_articles <- EpiBib_author("Colson", years = "all")Search by the first author’s country
canada_articles <- EpiBib_country("canada", years = 2020:2022)Search by author and year
yang2021 <- EpiBib_AU_YE(author = "yang", year = 2021)Search with several criteria
epibibr_data(), from the first version of EpiBibR,
combines the criteria (empty ones are ignored).
epibibr_visual() still draws its three preset charts
("line_1", "bar_1", "bar_2").
colson_2020 <- epibibr_data(author = "Colson", year = "2020", country = "france")Search by keywords in the title
long_covid <- EpiBib_title("long covid", years = 2021:2025)Search by keywords in the title or abstract
This search runs live on PubMed, which also searches the abstracts. To add the abstract texts to your results:
hesitancy <- EpiBib_abstract("vaccine hesitancy", years = 2021)
hesitancy <- EpiBib_add_abstracts(hesitancy) # adds the AB column, from PubMedSearching PubMed is faster with a free NCBI API
key: put NCBI_API_KEY=your_key in your
~/.Renviron.
Search by year
articles_2020 <- EpiBib_year(2020)Search by journal
lancet_articles <- EpiBib_source("lancet", years = 2020)Charts
Each chart answers one question and prints its statistics on the
figure. It returns a ggplot object (requires the ggplot2 package) that
you can restyle; p$data holds the table behind it. Every
chart accepts any EpiBibR result,
e.g. EpiBib_plot_growth(EpiBib_title("vaccin", years = "all")).
How fast is coronavirus research growing?

Which countries produce it?
EpiBib_plot_countries(EpiBib_references(years = 2020:2026))
What is it about, and how does that shift?
EpiBib_plot_topics(EpiBib_references(years = 2020:2026))
Where is it published?
EpiBib_plot_journals(EpiBib_references(years = 2020:2026))
How do countries’ shares change?

All the analyses, with their results, are in the articles Coronavirus research at a glance and Reproducible bibliometric analysis.
What to do after using EpiBibR
Read the articles
Every reference has its PubMed ID (ID), so you can open
it at https://pubmed.ncbi.nlm.nih.gov/<ID>/.
Bibliometric analysis
The columns follow the conventions of the bibliometrix package (and its
Shiny app, biblioshiny()).
EpiBib_to_bibliometrix() completes the adaptation: it puts
the MeSH terms in the ID column, where bibliometrix expects
keywords.
library(bibliometrix)
M <- EpiBib_to_bibliometrix(EpiBib_title("long covid", years = 2020:2025))
results <- biblioAnalysis(M)
summary(results, k = 10)
# Themes: clusters of MeSH terms by centrality and density
thematicMap(M, field = "ID", n = 250, minfreq = 5)$mapThe article Reproducible bibliometric analysis runs a complete study this way, with its results.
Citation
citation("EpiBibR")If you use EpiBibR, please cite both articles, and credit the U.S. National Library of Medicine as the source of the data:
- Warin, T. (2020). Global Research on Coronaviruses: An R Package. Journal of Medical Internet Research, 22(8), e19615. https://doi.org/10.2196/19615
- Warin, T. (2021). Global Research on Coronaviruses: Metadata-Based Analysis for Public Health Policies. JMIR Medical Informatics, 9(11), e31510. https://doi.org/10.2196/31510
citation("EpiBibR") gives both references, with BibTeX
entries.
EpiBib_cite() writes the sentence for your methods
section, with the number of references, the years and the date of the
data you used:
EpiBib_cite(long_covid)
#> 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 839 references published from
#> 2021 to 2022 (EpiBibR data as of 2026-11-27).In R Markdown or Quarto, write it inline,
`r EpiBib_cite(long_covid, bib = "references.bib", markdown = TRUE)`:
the sentence follows your data, and both articles are added to
references.bib and to your reference list.
Keeping the data up to date
A
GitHub Action rebuilds the data from PubMed on the 1st of every
month with data-raw/build_data.R
and replaces the files on the data release.