Access Infectious and Epidemiological Data via 'disease.sh API'
Overview
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/.
Bug Fixes
- Fixed graceful failure handling for all API functions when internet is unavailable
- Functions now use
message()instead ofwarning()for connection errors - Added timeout (10 seconds) to all API requests to prevent hanging
- Improved error messages to be more informative for users
- All functions now return
NULLgracefully when API is unavailable - Updated documentation to reflect graceful failure behavior
- Changed examples from
\donttest{}to\dontrun{}for better CRAN compliance
CRAN Compliance
- Package now complies with CRAN policy: "Packages which use Internet resources should fail gracefully with an informative message if the resource is not available"
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-13
- ERROR12 OK, 1 ERROR2026-08-06
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-21
Show 4 earlier changesHide 4 earlier changes
- ERROR13 OK, 1 ERROR2026-04-19
- OK14 OK2026-04-13
- ERROR13 OK, 1 ERROR2026-03-30
- OK14 OK2026-03-10
Documentation
- Help pages
- 47includes a package overview page
- Examples that run
- 13%1 run in a plain check (under a condition) · 7 never run
- Exported functions with examples
- 17%
- Documented parameters
- 10%
- Return-value docs
- 17%
- Help pages citing references
- 15%
Downloads
Repository
Stars over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/lightbluetitan/infectiousr on 2026-10-22.
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.1.1Latest
- 0.1.02025-06-16
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-06-16
- Total releases
- 2 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 103 KB / 38 files
- Download size
- 256 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("infectiousR")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.