Skip to content

infectiousR

Access Infectious and Epidemiological Data via 'disease.sh API'

v0.1.1 · Nov 9, 2025 · GPL-3

Description

Provides functions to access real-time infectious disease data from the 'disease.sh API', including COVID-19 global, US states, continent, and country statistics, vaccination coverage, influenza-like illness data from the Centers for Disease Control and Prevention (CDC), and more. Also includes curated datasets on a variety of infectious diseases such as influenza, measles, dengue, Ebola, tuberculosis, meningitis, AIDS, and others. The package supports epidemiological research and data analysis by combining API access with high-quality historical and survey datasets on infectious diseases. For more details on the 'disease.sh API', see <https://disease.sh/>.

Downloads

935

Last 30 days

3941st

2.2K

Last 90 days

5.6K

Last year

Trend: +33.8% (30d vs prior 30d)

CRAN Check Status

1 ERROR
13 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 ERROR
Check details (1 non-OK)
ERROR r-release-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'infectiousR_vignette.Rmd' using rmarkdown

Quitting from infectiousR_vignette.Rmd:56-78 [covid-usa-simple-plot]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `UseMethod()`:
! no applicable method for 'slice_head' applied to an object of class "NULL"
---
Backtrace:
    ▆
 1. ├─covid_data %>% slice_head(n = 5) %>% ...
 2. ├─dplyr::select(., where(~!all(is.na(.))))
 3. └─dplyr::slice_head(., n = 5)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'infectiousR_vignette.Rmd' failed with diagnostics:
no applicable method for 'slice_head' applied to an object of class "NULL"
--- failed re-building 'infectiousR_vignette.Rmd'

SUMMARY: processing the following file failed:
  'infectiousR_vignette.Rmd'

Error: Vignette re-building failed.
Execution halted

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
ERROR r-release-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'infectiousR_vignette.Rmd' using rmarkdown

Quitting from infectiousR_vignette.Rmd:56-78 [covid-usa-simple-plot]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<erro
...[truncated]...
plicable method for 'slice_head' applied to an object of class "NULL"
--- failed re-building 'infectiousR_vignette.Rmd'

SUMMARY: processing the following file failed:
  'infectiousR_vignette.Rmd'

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies httr jsonlite lubridate infectiousR

Version History

new 0.1.1 Mar 10, 2026
updated 0.1.1 ← 0.1.0 diff Nov 8, 2025
new 0.1.0 Jun 15, 2025