Skip to content

epiworldR

Fast Agent-Based Epi Models

v0.14.0.0 · Mar 27, 2026 · MIT + file LICENSE

Description

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.

Downloads

CRAN

678

Last 30 days

4953rd

2K

Last 90 days

7.1K

Last year

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

r2u CRAN

24

Last 30 days

145

Last 90 days

625

Last year

Trend: -40% (30d vs prior 30d)

autoCRAN

5

Last 7 days

16

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 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-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 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘advanced-modeling.qmd’ using html
Warning in file(open = "w+b") :
  cannot open file '/tmp/RtmpTpmfM9/Rf78c382b0017e6': No space left on device
Error: processing vignette 'advanced-modeling.qm
...[truncated]...
n()`:
! System command 'quarto' failed
--- failed re-building ‘run-multiple.qmd’

SUMMARY: processing the following files failed:
  ‘advanced-modeling.qmd’ ‘getting-started.qmd’ ‘run-multiple.qmd’

Error: Vignette re-building failed.
Execution halted
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 20.8Mb
  sub-directories of 1Mb or more:
    doc    1.9Mb
    help   1.3Mb
    libs  16.2Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 22.2Mb
  sub-directories of 1Mb or more:
    doc    1.9Mb
    help   1.3Mb
    libs  17.6Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.6Mb
  sub-directories of 1Mb or more:
    doc    1.9Mb
    help   1.3Mb
    libs   2.0Mb

Code

Structure

Lines of code

17,158

Files

250

Compiled share

25.9%

Has compiled src

Yes

Language breakdown

R 7,281 (42.4%)C/C++/src 4,446 (25.9%)Tests 4 (0%)Docs 4,453 (26%)Vignettes 974 (5.7%)

API

Exported functions

175

Internal functions

273

Recent export changes

v0.8.2.0+1 distribute_virus_to_set
v0.8.1.0+6 ModelMeaslesQuarantine, draw_mermaid, draw_mermaid_from_data +3 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

97.1%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

100%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

1

C++ standard

C++17

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

18

First release

2023-06-09

Latest release

2026-03-28

Avg cadence

30 days

Cold removal rate

87.5%

Dep drift

2

LOC over versions

v0.0-1: 8,389 LOCv0.0-2: 9,480 LOCv0.0-3: 10,598 LOCv0.0-4: 10,755 LOCv0.1-0: 10,755 LOCv0.3-2: 12,725 LOCv0.6.0.0: 14,768 LOCv0.6.1.0: 14,768 LOCv0.8.1.0: 15,644 LOCv0.8.2.0: 15,833 LOCv0.8.3.0: 15,862 LOCv0.10.0.0: 17,630 LOCv0.11.0.0: 17,155 LOCv0.11.0.1: 17,155 LOCv0.11.2.0: 17,155 LOCv0.12.0.0: 17,162 LOCv0.13.0.0: 17,168 LOCv0.14.0.0: 17,158 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (3)

depends

imports

linking_to

Dependency Network

Dependencies Reverse dependencies measles epiworldRShiny epiworldRcalibrate epiworldR

Version History

19 tracked
updated 0.14.0.0 ← 0.13.0.0 diff Mar 28, 2026
updated 0.13.0.0 ← 0.12.0.0 diff Mar 13, 2026
new 0.12.0.0 Mar 10, 2026
updated 0.12.0.0 ← 0.11.2.0 diff Feb 20, 2026
updated 0.11.2.0 ← 0.11.0.1 diff Feb 2, 2026
updated 0.11.0.1 ← 0.11.0.0 diff Jan 13, 2026
updated 0.11.0.0 ← 0.10.0.0 diff Dec 21, 2025
updated 0.10.0.0 ← 0.8.3.0 diff Nov 13, 2025
updated 0.8.3.0 ← 0.8.2.0 diff Jun 12, 2025
updated 0.8.2.0 ← 0.8.1.0 diff May 12, 2025
updated 0.8.1.0 ← 0.6.1.0 diff Apr 22, 2025
updated 0.6.1.0 ← 0.6.0.0 diff Jan 28, 2025
updated 0.6.0.0 ← 0.3-2 diff Jan 15, 2025
updated 0.3-2 ← 0.1-0 diff Oct 7, 2024
updated 0.1-0 ← 0.0-4 diff Apr 7, 2024