Skip to content

denim

Generate and Simulate Deterministic Compartmental Models

v1.2.3 · Jan 13, 2026 · MIT + file LICENSE

Description

R package to build and simulate deterministic compartmental models that can be non-Markovian. Length of stay in each compartment can be defined to follow a parametric distribution (d_exponential(), d_gamma(), d_weibull(), d_lognormal()) or a non-parametric distribution (nonparametric()). Other supported types of transition from one compartment to another includes fixed transition (constant()), multinomial (multinomial()), fixed transition probability (transprob()).

Downloads

CRAN

530

Last 30 days

6767th

1.6K

Last 90 days

4.5K

Last year

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

r2u CRAN

41

Last 30 days

124

Last 90 days

470

Last year

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

autoCRAN

2

Last 7 days

9

Last 30 days

0

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 ‘deSolve_to_denim.Rmd’ using rmarkdown
--- finished re-building ‘deSolve_to_denim.Rmd’

--- re-building ‘denim.Rmd’ using rmarkdown

Quitting from denim.Rmd:10-18 [setup]
~~~~~~~~~~~~~~~~~~~~~~
...[truncated]...
g ‘multinomial.Rmd’

--- re-building ‘nonparametric.Rmd’ using rmarkdown
--- finished re-building ‘nonparametric.Rmd’

SUMMARY: processing the following files failed:
  ‘denim.Rmd’ ‘denim_dsl.Rmd’

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 Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 17.1Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.6Mb
    libs  13.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 17.3Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.6Mb
    libs  13.3Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.9Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.5Mb
    libs   1.9Mb
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/denim.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 17.1Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.6Mb
    libs  13.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 17.3Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.6Mb
    libs  13.3Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.9Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.5Mb
    libs   1.9Mb
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 17.1Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.6Mb
    libs  13.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 17.3Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.6Mb
    libs  13.3Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.9Mb
  sub-directories of 1Mb or more:
    doc    2.4Mb
    help   1.5Mb
    libs   1.9Mb

Dependency Network

Dependencies Reverse dependencies Rcpp colorspace rlang glue denim

Version History

8 tracked
new 1.2.3 Mar 10, 2026
updated 1.2.3 ← 1.2.2 diff Jan 13, 2026
updated 1.2.2 ← 1.2.1 diff Aug 20, 2025
updated 1.2.1 ← 1.2.0 diff Jun 1, 2025
updated 1.2.0 ← 1.1.0 diff May 29, 2025
updated 1.1.0 ← 1.0.1 diff May 15, 2025
updated 1.0.1 ← 1.0.0 diff Mar 16, 2025
new 1.0.0 Jun 4, 2024