epiworldR
0.14.0.0Fast Agent-Based Epi Models
Overview
A flexible framework for Agent-Based Models (ABM), the 'epiworldR' package provides methods for prototyping disease outbreaks and transmission models using a 'C++' backend, making it very fast. It supports multiple epidemiological models, including the Susceptible-Infected-Susceptible (SIS), Susceptible-Infected-Removed (SIR), Susceptible-Exposed-Infected-Removed (SEIR), and others, involving arbitrary mitigation policies and multiple-disease models. Users can specify infectiousness/susceptibility rates as a function of agents' features, providing great complexity for the model dynamics. Furthermore, 'epiworldR' is ideal for simulation studies featuring large populations.
- The way
seedis passed torun()andrun_multiple()has been modified to ensure comparability with the C++ version. Now, a random seed number is drawn only if seed is not specified.
Internal changes
- (epiworld#189) Addressing memory access issues that arise when calling
run_multipleusing OpenMP. The latest version reduces usage of points (including smart) to make the code more reliable. No penalties on its performance are expected. - Switch vignette building engine to
quarto.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 36 (1 internal)includes a package overview page
- Examples that run
- 97%33 run in a plain check · 1 hold no code
- Exported functions with examples
- 97%
- Documented parameters
- 93%
- Return-value docs
- 97%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 92%
- Median days to close, 50 most recently updated closed issues
- 8
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
16 development-tooling and community-health practices detected across 9 families in the upstream repository
Checks run against github.com/uofuepibio/epiworldr on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-09 · The repository has a site deploy workflow
Show all practicesHide 5 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2025-07-16Seen in the repository: .github/copilot-instructions.md, .github/workflows/copilot-setup-steps.ymlPull request: opened by its own accountCommits: 6 by its own account · at least 13 crediting it in the message
- Claude Codefirst seen 2026-07-17Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: CLAUDE.mdPull request it wrote: opened by a project memberCommits: at least 21 crediting it in the message
- Codexfirst seen 2026-08-15Commits: at least 1 crediting it in the message
- Copilot code reviewCommits: at least 2 accepting its review suggestions
- Claude Opus 5.511 commits · Sep to Oct 2026
- Claude Sonnet 5.54 commits · Oct 2026
- Claude Opus 53 commits · Aug 2026
- Claude Sonnet 52 commits · Sep 2026
- Claude Fable 51 commit · Aug 2026
Dependencies
Installing epiworldR adds 1 package (0 with compiled code, 298 KB of source tarballs). Heaviest: cpp11 298 KB.
Code & Tests
People & History
Previously maintained by Andrew Pulsipher (0.6.0.0 to 0.8.3.0) and George Vega Yon (0.3-2).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.14.0.0Latest
- 0.13.0.02026-03-12 · diff ↗
- 0.12.0.02026-02-21 · diff ↗
- 0.11.2.02026-02-03 · diff ↗
- 0.11.0.12026-01-14 · diff ↗
- 0.11.0.02025-12-22 · diff ↗ ·
removed 4 exports
ModelMeaslesMixing, ModelMeaslesMixingRiskQuarantine, ModelMeaslesQuarantine, ModelMeaslesSchooladded 6 exports
add_entities_from_dataframe, distribute_tool_to_entities, distribute_virus_to_entities, get_active_cases, get_hospitalizations, get_outbreak_size - 0.10.0.02025-11-14 · diff ↗ ·
added 4 exports
ModelMeaslesMixing, ModelMeaslesMixingRiskQuarantine, ModelMeaslesSchool, ModelSEIRMixingQuarantine - 0.8.3.02025-06-13 · diff ↗
- 0.8.2.0
- 0.8.1.02025-04-23 · diff ↗ ·
added 6 exports
ModelMeaslesQuarantine, draw_mermaid, draw_mermaid_from_data, draw_mermaid_from_file, draw_mermaid_from_files, draw_mermaid_from_matrix - RR 4.5.0 released · 2025-04-11
- 0.6.1.02025-01-29 · diff ↗
- 0.6.0.02025-01-16 · diff ↗ ·
added 33 exports
LFMCMC, add_param, get_all_accepted_kernel_scores, get_all_accepted_params, get_all_accepted_stats, get_all_sample_acceptance, get_all_sample_drawn_prob, get_all_sample_kernel_scores, get_all_sample_params, get_all_sample_stats, get_current_accepted_params, get_current_accepted_stats, get_current_proposed_params, get_current_proposed_stats, get_initial_params, get_mean_params, get_mean_stats, get_n_params, get_n_samples, get_n_stats, get_observed_stats, rm_globalevent, run_lfmcmc, set_kernel_fun, set_observed_data, set_params_names, set_proposal_fun, set_simulation_fun, set_stats_names, set_summary_fun and 3 more - 0.3-22024-10-08 · diff ↗ ·
added 20 exports
ModelSEIRMixing, ModelSIRMixing, add_entity, distribute_entity_randomly, distribute_entity_to_set, distribute_tool_randomly, distribute_tool_to_set, distribute_virus_randomly, distribute_virus_set, entity, entity_add_agent, entity_get_agents, get_entities, get_entity_name, get_entity_size, load_agents_entities_ties, rm_entity, set_distribution_entity, set_distribution_tool, set_distribution_virus - RR 4.4.0 released · 2024-04-24
Show 8 earlier eventsHide 8 earlier events
- 0.1-02024-04-08 · diff ↗
- unarchivedReturned to CRAN2024-02-09
- 0.0-42024-02-09 · diff ↗ ·
removed 2 exports
add_global_action, get_agents_virusesadded 7 exports
add_globalevent, clone_model, globalevent_fun, globalevent_set_params, globalevent_tool, globalevent_tool_logit, initial_states - archivedRemoved from CRAN2024-01-12issues were not corrected despite reminders
- 0.0-32023-09-08 · diff ↗ ·
added 5 exports
ModelSEIRD, ModelSEIRDCONN, ModelSIRD, ModelSIRDCONN, ModelSISD - 0.0-22023-06-22 · diff ↗ ·
removed 2 exports
get_hist_variant, get_n_variantsadded 15 exports
add_tool_agent, add_virus_agent, change_state, get_agents_states, get_agents_tools, get_agents_viruses, get_hist_virus, get_n_viruses, get_today_total, globalaction_fun, has_tool, has_virus, set_incubation, set_incubation_fun, set_incubation_ptr - 0.0-12023-06-09
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-06-09
- Total releases
- 18 / 3 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 3.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("epiworldR")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.