{
  "_id": "6ad3269162c1581dfb2fa92c",
  "Package": "denim",
  "Type": "Package",
  "Title": "Generate and Simulate Deterministic Compartmental Models",
  "Version": "1.2.3",
  "Date": "2026-01-14",
  "Authors@R": "c(\nperson(\"Thinh\", \"Ong\", , \"thinhop@oucru.org\", role = c(\"aut\", \"cph\"),\ncomment = c(ORCID = \"0000-0001-6772-9291\")),\nperson(\"Anh\", \"Phan\", , \"anhptq@oucru.org\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0009-0000-2129-435X\")),\nperson(\"Marc\", \"Choisy\", , \"mchoisy@oucru.org\", role = \"aut\",\ncomment = c(ORCID = \"0000-0002-5187-6390\")),\nperson(\"Niels\", \"Lohman\", ,role = c(\"ctb\", \"cph\"),\ncomment=\"Author of the bundled JSON C++ library\"),\nperson(\"Bjoern\", \"Hoehrmann\", ,email = \"bjoern@hoehrmann.de\", role = c(\"ctb\", \"cph\"),\ncomment=\"Author of UTF-8 validation code in the bundled JSON C++ library\"),\nperson(\"Florian\", \"Loitsch\", ,role = c(\"ctb\", \"cph\"),\ncomment=\"Author of the binary to decimal floating-point conversion code in the bundled JSON C++ library\"),\nperson(\"Ingo\", \"Berg\", ,role = c(\"ctb\", \"cph\"),\ncomment=\"Author of the bundled MuParser C++ library\")\n)",
  "Description": "R package to build and simulate deterministic\ncompartmental models that can be semi-Markovian. Length of stay\nin each compartment can be defined to follow a parametric\ndistribution (d_exponential(), d_gamma(), d_weibull(),\nd_lognormal()) or a non-parametric distribution\n(nonparametric()).",
  "License": "MIT + file LICENSE",
  "URL": "https://drthinhong.com/denim/, https://github.com/thinhong/denim",
  "BugReports": "https://github.com/thinhong/denim/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "cmake make libuv1-dev",
  "Repository": "https://thinhong.r-universe.dev",
  "Date/Publication": "2026-01-20 05:36:17 UTC",
  "RemoteUrl": "https://github.com/thinhong/denim",
  "RemoteRef": "HEAD",
  "RemoteSha": "439059c4a9823e293e16e333cc0621e169836262",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-17 07:29:49 UTC",
    "User": "root"
  },
  "Author": "Thinh Ong [aut, cph] (ORCID: <https://orcid.org/0000-0001-6772-9291>),\nAnh Phan [aut, cre] (ORCID: <https://orcid.org/0009-0000-2129-435X>),\nMarc Choisy [aut] (ORCID: <https://orcid.org/0000-0002-5187-6390>),\nNiels Lohman [ctb, cph] (Author of the bundled JSON C++ library),\nBjoern Hoehrmann [ctb, cph] (Author of UTF-8 validation code in the\nbundled JSON C++ library),\nFlorian Loitsch [ctb, cph] (Author of the binary to decimal\nfloating-point conversion code in the bundled JSON C++ library),\nIngo Berg [ctb, cph] (Author of the bundled MuParser C++ library)",
  "Maintainer": "Anh Phan <anhptq@oucru.org>",
  "_user": "thinhong",
  "_type": "src",
  "_file": "denim_1.2.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/8999f368457583a2d90e1b7b0af07da043018996a75a5b1b033e760e9ee59815",
  "_filesize": 3914053,
  "_sha256": "8999f368457583a2d90e1b7b0af07da043018996a75a5b1b033e760e9ee59815",
  "_expires": "2027-01-25T07:41:03.000Z",
  "_created": "2026-10-17T07:29:49.000Z",
  "_published": "2026-10-17T07:41:05.063Z",
  "_buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117341968679,
      "time": 199,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12094560164"
    },
    {
      "job": 117341968709,
      "time": 188,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12093609492"
    },
    {
      "job": 117341968669,
      "time": 157,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12093848126"
    },
    {
      "job": 117341968682,
      "time": 180,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12094356580"
    },
    {
      "job": 117341968761,
      "time": 208,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12093758623"
    },
    {
      "job": 117341968789,
      "time": 547,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12094003397"
    },
    {
      "job": 117341968740,
      "time": 182,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12094102589"
    },
    {
      "job": 117341968754,
      "time": 410,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12094415979"
    },
    {
      "job": 117341049554,
      "time": 300,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12093439755"
    },
    {
      "job": 117341968680,
      "time": 163,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12093303644"
    },
    {
      "job": 117341968710,
      "time": 412,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12094057903"
    },
    {
      "job": 117341968723,
      "time": 212,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12093748694"
    },
    {
      "job": 117341968788,
      "time": 156,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12094301888"
    },
    {
      "job": 117341968765,
      "time": 450,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12094570494"
    },
    {
      "job": 117341968793,
      "time": 124,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12094177241"
    }
  ],
  "_upstream": "https://github.com/thinhong/denim",
  "_commit": {
    "id": "439059c4a9823e293e16e333cc0621e169836262",
    "author": "Quynh Anh <90673616+quingzz@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #49 from thinhong/reviewer-comments\n\nupdate CRAN submission details",
    "time": 1768887377
  },
  "_maintainer": {
    "name": "Anh Phan",
    "email": "anhptq@oucru.org",
    "login": "quingzz",
    "description": "Research Assistant @OUCRU-Modelling ",
    "uuid": 90673616,
    "orcid": "0009-0000-2129-435X"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "testthat",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.6",
      "role": "Imports"
    },
    {
      "package": "colorspace",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "waldo",
      "role": "Suggests"
    },
    {
      "package": "xml2",
      "role": "Suggests"
    },
    {
      "package": "deSolve",
      "role": "Suggests"
    },
    {
      "package": "tidyverse",
      "role": "Suggests"
    },
    {
      "package": "DiagrammeR",
      "role": "Suggests"
    }
  ],
  "_owner": "thinhong",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-52",
      "n": 2
    },
    {
      "week": "2026-01",
      "n": 1
    },
    {
      "week": "2026-04",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.2.3",
      "date": "2025-12-31"
    },
    {
      "name": "v1.2.3-z",
      "date": "2026-01-20"
    }
  ],
  "_stars": 3,
  "_contributors": [
    {
      "user": "quingzz",
      "count": 125,
      "uuid": 90673616
    },
    {
      "user": "thinhong",
      "count": 82,
      "uuid": 34956551
    },
    {
      "user": "choisy",
      "count": 10,
      "uuid": 12168614
    },
    {
      "user": "tuyenhn",
      "count": 4,
      "uuid": 47712557
    }
  ],
  "_userbio": {
    "uuid": 34956551,
    "type": "user",
    "name": "Thinh Ong",
    "followers": 9
  },
  "_downloads": {
    "count": 452,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/denim"
  },
  "_devurl": "https://github.com/thinhong/denim",
  "_pkgdown": "https://drthinhong.com/denim/",
  "_searchresults": 22,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/denim.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/thinhong/denim",
  "_realowner": "thinhong",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2024-06-05"
    },
    {
      "version": "1.0.1",
      "date": "2025-03-17"
    },
    {
      "version": "1.1.0",
      "date": "2025-05-16"
    },
    {
      "version": "1.2.0",
      "date": "2025-05-30"
    },
    {
      "version": "1.2.1",
      "date": "2025-06-02"
    },
    {
      "version": "1.2.2",
      "date": "2025-08-21"
    },
    {
      "version": "1.2.3",
      "date": "2026-01-14"
    }
  ],
  "_exports": [
    "d_exponential",
    "d_gamma",
    "d_lognormal",
    "d_weibull",
    "denim_dsl",
    "mathexpr",
    "nonparametric",
    "sim"
  ],
  "_help": [
    {
      "page": "denim-package",
      "title": "denim",
      "topics": [
        "denim-package",
        "denim"
      ]
    },
    {
      "page": "d_exponential",
      "title": "Discrete exponential distribution",
      "topics": [
        "d_exponential"
      ]
    },
    {
      "page": "d_gamma",
      "title": "Discrete gamma distribution",
      "topics": [
        "d_gamma"
      ]
    },
    {
      "page": "d_lognormal",
      "title": "Discrete log-normal distribution",
      "topics": [
        "d_lognormal"
      ]
    },
    {
      "page": "d_weibull",
      "title": "Discrete Weibull distribution",
      "topics": [
        "d_weibull"
      ]
    },
    {
      "page": "denim_dsl",
      "title": "Define transitions using denim's domain-specific language (DSL)",
      "topics": [
        "denim_dsl"
      ]
    },
    {
      "page": "nonparametric",
      "title": "Nonparametric distribution transition",
      "topics": [
        "nonparametric"
      ]
    },
    {
      "page": "plot.denim",
      "title": "Overloaded plot function for denim object",
      "topics": [
        "plot.denim"
      ]
    },
    {
      "page": "sim",
      "title": "Simulator for deterministic discrete time model with memory",
      "topics": [
        "sim"
      ]
    }
  ],
  "_pkglogo": "https://github.com/thinhong/denim/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/thinhong/denim/raw/HEAD/README.md",
  "_rundeps": [
    "brio",
    "callr",
    "cli",
    "colorspace",
    "crayon",
    "desc",
    "diffobj",
    "evaluate",
    "fs",
    "glue",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "otel",
    "pkgbuild",
    "pkgload",
    "praise",
    "processx",
    "ps",
    "R6",
    "Rcpp",
    "rlang",
    "rprojroot",
    "testthat",
    "waldo",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "denim_dsl.Rmd",
      "filename": "denim_dsl.html",
      "title": "denim DSL",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Model definition in denim",
        "Denim DSL",
        "Define a classic SIR model",
        "Time varying transition",
        "R list"
      ],
      "created": "2025-06-03 06:45:48",
      "modified": "2025-07-30 09:12:26",
      "commits": 5
    },
    {
      "source": "denim.Rmd",
      "filename": "denim.html",
      "title": "denim: deterministic model with memory",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Simple SIR model with gamma distributed lengths of stay",
        "2. How the algorithm work?",
        "3. Waiting time distribution",
        "4. Multiple transitions from a compartment",
        "5. Additional examples",
        "Example 1",
        "Example 2"
      ],
      "created": "2022-03-24 04:19:37",
      "modified": "2026-01-20 05:36:17",
      "commits": 25
    },
    {
      "source": "deSolve_to_denim.Rmd",
      "filename": "deSolve_to_denim.html",
      "title": "deSolve to denim",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Migrate deSolve code to denim",
        "Original code in deSolve",
        "Model definition",
        "Model configurations",
        "Simulation",
        "Compare output"
      ],
      "created": "2024-12-10 11:04:51",
      "modified": "2025-08-01 05:11:39",
      "commits": 12
    },
    {
      "source": "nonparametric.Rmd",
      "filename": "nonparametric.html",
      "title": "nonparametric distribution",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Non-parametric vs parametric",
        "Example 1",
        "Example 2"
      ],
      "created": "2025-06-03 06:45:48",
      "modified": "2025-07-29 07:46:18",
      "commits": 3
    },
    {
      "source": "multinomial.Rmd",
      "filename": "multinomial.html",
      "title": "transition to multiple states",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Transition to multiple states in denim",
        "2. Multinomial in denim",
        "2.1. Model definition",
        "Proportion normalization",
        "2.2. Example model",
        "Model definition in denim",
        "Equivalent model definition in deSolve",
        "Run simulation and compare",
        "3. Competing risks in denim",
        "3.1. Model definition",
        "3.2. Example model"
      ],
      "created": "2025-05-23 06:58:40",
      "modified": "2025-07-30 09:12:26",
      "commits": 5
    }
  ],
  "_score": 6.171726453653231,
  "_indexed": true,
  "_nocasepkg": "denim",
  "_universes": [
    "thinhong",
    "quingzz"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-10-17T07:33:13.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/9f45c61bbd9521aa2f2a93e23959aa78426a0a10fb713c6c551c3170ca26a410",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-10-17T07:32:52.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/de08d8c346c31f37a8b8bbdc9811d034478a63c611e5844024270beb47dd38af",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-10-17T07:32:41.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/df15826075f739010f164c33e74daec3b69fd40543beccc9ab91f59de59db181",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.2.3",
      "date": "2026-10-17T07:32:50.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/23dae2fcf4e62e9394230d5970898f7514ba0504ea6af03abaf981dbbcd73871",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-10-17T07:33:31.000Z",
      "arch": "aarch64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/4e0f3fbad0a0a616fb4ff1e61415cf416aaad8ff68caad9611836da3531f274a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-10-17T07:37:26.000Z",
      "arch": "x86_64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/ee086e0f1c7c89ef6571f77efc206c58f071ba2f8f95fa7831184f00f6302ab8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-10-17T07:33:28.000Z",
      "arch": "aarch64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/6a2705fdba4816994e00a078f755c79c4254b06a920e9ebcdbacadb89986ab73",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.2.3",
      "date": "2026-10-17T07:34:20.000Z",
      "arch": "x86_64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/1a214e0800dd430a811efad4a95e63337042afd08f6a502b0184c5d234fe3304",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.3",
      "date": "2026-10-17T07:33:00.000Z",
      "arch": "emscripten",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/ca2713b2abfd61a4a0bb54444b1749e5875b341827729332cd129def4df16154",
      "status": "success",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-10-17T07:35:27.000Z",
      "arch": "aarch64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/7b1ef5b13f24b69a07c587639ebe5c44a02e6571c89f1cf7523e04e53b22a346",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-10-17T07:31:48.000Z",
      "arch": "x86_64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/98b415c6af588ec49f9a32d4dc27780f6e7f56ae60374cef0751af94b34d63f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-10-17T07:31:50.000Z",
      "arch": "x86_64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/bd5a99a69431c71e9b4aed45ece87de4ec3a15a7641ba8a831fc34642482b740",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-10-17T07:36:22.000Z",
      "arch": "aarch64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/4c830acffbdedbd318a5dd05c48f9d51df461184c58709e6a086ba40403375e5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.2.3",
      "date": "2026-10-17T07:31:42.000Z",
      "arch": "x86_64",
      "commit": "439059c4a9823e293e16e333cc0621e169836262",
      "fileid": "https://r2.ropensci.org/8f01ed824768569382015bf320261d918add3711dfdd4dcaf2199cb48499b1a6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/thinhong/actions/runs/39013584253"
    }
  ]
}