Skip to content

denim

1.2.3

Generate and Simulate Deterministic Compartmental Models

0packages depend
4.7Kdownloads / year
39.9%test coverage
13/13checks pass

Overview

About
Maintained by Anh PhanFirst published 2024-06-057 releasesCRAN page ↗GitHub ↗

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()).

Install

Health

CRAN checks
13OK
Slowest check: 5.4 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.34
39.9%
Coverage · measured lines
100%
Documentation · exports
4
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 3 earlier snapshots
  • NOTE2026-04-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 125 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

4.7K
CRAN downloads in the past year
Rank #7,570 · ~13/day · ~388/mo
Daily download trend is not available in this view yet.
22630 days
1.1K90 days
4.7K1 year
Compare downloads with other packages →
Also on424 r2u7 autocran

Repository

Repository
3Stars
2Forks
15Open issues
1Open PRs
3Releases
248Commits
5Contributors
248 commits · Last activity 2026-01-20 · 0% stars, 30d

Stars over time

2024-11-06 · 22026-07-07 · 3

Repository practices

Upstream repositoryBeta

7 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/thinhong/denim on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (2)
Codecov.covrignore
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (7)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author, Copyright holder
Contributors (4)
Contributor, Copyright holder
Contributor, Copyright holder
Contributor, Copyright holder
Contributor, Copyright holder
Copyright holders (5)
Author, Copyright holder
Contributor, Copyright holder
Contributor, Copyright holder
Contributor, Copyright holder
Contributor, Copyright holder
Package Timeline

7 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.3Latest
    2026-01-14 · current release · diff ↗
  • 1.2.2
    2025-08-21 · diff ↗
  • 1.2.1
    2025-06-02 · diff ↗
  • 1.2.0
    2025-05-30 · diff ↗
  • 1.1.0
    2025-05-16 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0.1
    2025-03-17 · diff ↗
  • 1.0.0
    2024-06-05
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-06-05
Total releases
7 / 2 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
2.5 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("denim")
Phan, A., Berg, I., Choisy, M., Hoehrmann, B., Lohman, N., Loitsch, F., & Ong, T. (2026). denim: Generate and Simulate Deterministic Compartmental Models (Version 1.2.3) [Computer software]. https://doi.org/10.32614/CRAN.package.denim

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for denim version 1.2.3 [Data set]. HJJB, LLC. Data release v2026-08-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy