{
  "_id": "6a1f3820b401979e73428dc1",
  "Package": "hmmTMB",
  "Type": "Package",
  "Title": "Fit Hidden Markov Models using Template Model Builder",
  "Version": "1.1.2",
  "Authors@R": "c(\nperson(given = \"Theo\",\nfamily = \"Michelot\",\nrole = c(\"aut\", \"cre\"),\nemail = \"theo.michelot@dal.ca\"),\nperson(given = \"Richard\",\nfamily = \"Glennie\",\nrole = c(\"aut\", \"ctb\")))",
  "Maintainer": "Theo Michelot <theo.michelot@dal.ca>",
  "Description": "Fitting hidden Markov models using automatic\ndifferentiation and Laplace approximation, allowing for fast\ninference and flexible covariate effects (including random\neffects and smoothing splines) on model parameters. The package\nis described by Michelot (2025) <doi:10.18637/jss.v114.i05>.",
  "URL": "https://github.com/TheoMichelot/hmmTMB",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "make libicu-dev",
  "Repository": "https://theomichelot.r-universe.dev",
  "Date/Publication": "2026-04-13 12:51:46 UTC",
  "RemoteUrl": "https://github.com/theomichelot/hmmtmb",
  "RemoteRef": "HEAD",
  "RemoteSha": "ce29b6b207dc52809d7f233e5035e3420202df7b",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-13 09:35:01 UTC",
    "User": "root"
  },
  "Author": "Theo Michelot [aut, cre],\nRichard Glennie [aut, ctb]",
  "MD5sum": "b7592a92e4eef5e541c6455150aeeea5",
  "_user": "theomichelot",
  "_type": "src",
  "_file": "hmmTMB_1.1.2.tar.gz",
  "_fileid": "963990d01c22bf879f141fb71a9b53d3948a867d7b33bd596b5ad44ed41700ad",
  "_filesize": 5524581,
  "_sha256": "963990d01c22bf879f141fb71a9b53d3948a867d7b33bd596b5ad44ed41700ad",
  "_created": "2026-05-13T09:35:01.000Z",
  "_published": "2026-06-02T20:08:00.370Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79161725500,
      "time": 374,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "6966705906"
    },
    {
      "job": 79161725475,
      "time": 386,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "6966709675"
    },
    {
      "job": 79161725961,
      "time": 355,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "6966698964"
    },
    {
      "job": 79161725710,
      "time": 371,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "6966707204"
    },
    {
      "job": 79161726290,
      "time": 382,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "6966695719"
    },
    {
      "job": 79161725660,
      "time": 795,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "6966837167"
    },
    {
      "job": 79161725237,
      "time": 324,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "6966681213"
    },
    {
      "job": 79161725363,
      "time": 460,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "6966729830"
    },
    {
      "job": 79161724665,
      "time": 660,
      "config": "source",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "6966571782"
    },
    {
      "job": 79161724571,
      "time": 148,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 79161724991,
      "time": 379,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "6966707623"
    },
    {
      "job": 79161725572,
      "time": 338,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "6966692930"
    },
    {
      "job": 79161725261,
      "time": 379,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "6966707846"
    }
  ],
  "_buildurl": "https://github.com/r-universe/theomichelot/actions/runs/25790367087",
  "_status": "failure",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/theomichelot/hmmtmb",
  "_commit": {
    "id": "ce29b6b207dc52809d7f233e5035e3420202df7b",
    "author": "Théo Michelot <theo.michelot@gmail.com>",
    "committer": "Théo Michelot <theo.michelot@gmail.com>",
    "message": "safe hessian inversion in HMM$confint()\n",
    "time": 1776084706
  },
  "_maintainer": {
    "name": "Theo Michelot",
    "email": "theo.michelot@dal.ca",
    "login": "theomichelot",
    "bluesky": "@theomichelot.bsky.social",
    "twitter": "@TheoMichelot",
    "uuid": 7921822
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R6",
      "role": "Depends"
    },
    {
      "package": "mgcv",
      "role": "Depends"
    },
    {
      "package": "TMB",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Depends"
    },
    {
      "package": "TMB",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "tmbstan",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "moveHMM",
      "role": "Suggests"
    },
    {
      "package": "scico",
      "role": "Suggests"
    },
    {
      "package": "MSwM",
      "role": "Suggests"
    },
    {
      "package": "unmarked",
      "role": "Suggests"
    }
  ],
  "_owner": "theomichelot",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-21",
      "n": 1
    },
    {
      "week": "2025-25",
      "n": 8
    },
    {
      "week": "2025-26",
      "n": 5
    },
    {
      "week": "2025-33",
      "n": 1
    },
    {
      "week": "2025-37",
      "n": 2
    },
    {
      "week": "2025-41",
      "n": 2
    },
    {
      "week": "2025-43",
      "n": 3
    },
    {
      "week": "2025-44",
      "n": 4
    },
    {
      "week": "2025-45",
      "n": 1
    },
    {
      "week": "2025-47",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 4
    },
    {
      "week": "2026-09",
      "n": 1
    },
    {
      "week": "2026-10",
      "n": 2
    },
    {
      "week": "2026-14",
      "n": 3
    },
    {
      "week": "2026-15",
      "n": 1
    },
    {
      "week": "2026-16",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "hidden-markov-model",
    "hmm",
    "mixed-effects-models",
    "random-effects",
    "smoothing-splines",
    "time-series-analysis",
    "cpp"
  ],
  "_stars": 68,
  "_contributors": [
    {
      "user": "theomichelot",
      "count": 338,
      "uuid": 7921822
    },
    {
      "user": "r-glennie",
      "count": 154,
      "uuid": 12098334
    },
    {
      "user": "janolefi",
      "count": 2,
      "uuid": 101901166
    },
    {
      "user": "sjbonner",
      "count": 2,
      "uuid": 8172269
    },
    {
      "user": "bmcclintock",
      "count": 1,
      "uuid": 11667599
    },
    {
      "user": "hallegue",
      "count": 1,
      "uuid": 14200886
    }
  ],
  "_userbio": {
    "uuid": 7921822,
    "type": "user",
    "name": "Théo Michelot",
    "description": "Assistant professor in statistics at Dalhousie University, Halifax, Canada"
  },
  "_downloads": {
    "count": 311,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hmmTMB"
  },
  "_devurl": "https://github.com/theomichelot/hmmtmb",
  "_searchresults": 102,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hmmTMB.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/theomichelot/hmmtmb",
  "_realowner": "theomichelot",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2023-01-14"
    },
    {
      "version": "1.0.1",
      "date": "2023-01-14"
    },
    {
      "version": "1.0.2",
      "date": "2023-10-25"
    },
    {
      "version": "1.1.0",
      "date": "2025-06-24"
    },
    {
      "version": "1.1.1",
      "date": "2025-09-11"
    },
    {
      "version": "1.1.2",
      "date": "2025-11-05"
    }
  ],
  "_exports": [
    "as_character_formula",
    "Dist",
    "HMM",
    "invmlogit",
    "is_whole_number",
    "logsumexp",
    "make_formulas",
    "MarkovChain",
    "mlogit",
    "mvnorm_invlink",
    "mvnorm_link",
    "Observation",
    "prec_to_cov",
    "quad_pos_solve",
    "strip_comments"
  ],
  "_help": [
    {
      "page": "as_character_formula",
      "title": "Read formula with as.character without splitting",
      "topics": [
        "as_character_formula"
      ]
    },
    {
      "page": "as_sparse",
      "title": "Transforms matrix to dgTMatrix",
      "topics": [
        "as_sparse"
      ]
    },
    {
      "page": "bdiag_check",
      "title": "Create block diagonal matrix (safe version)",
      "topics": [
        "bdiag_check"
      ]
    },
    {
      "page": "check_contiguous",
      "title": "Check values in vector are contiguous",
      "topics": [
        "check_contiguous"
      ]
    },
    {
      "page": "check_smooths",
      "title": "Check that only supported smooths are used",
      "topics": [
        "check_smooths"
      ]
    },
    {
      "page": "cov_grid",
      "title": "Grid of covariates",
      "topics": [
        "cov_grid"
      ]
    },
    {
      "page": "Dist",
      "title": "R6 class for probability distribution",
      "topics": [
        "Dist"
      ]
    },
    {
      "page": "dvm",
      "title": "Density function of von Mises distribution",
      "topics": [
        "dvm"
      ]
    },
    {
      "page": "dwrpcauchy",
      "title": "Density function of wrapped Cauchy distribution",
      "topics": [
        "dwrpcauchy"
      ]
    },
    {
      "page": "find_re",
      "title": "Find s(, bs = \"re\") terms in formula",
      "topics": [
        "find_re"
      ]
    },
    {
      "page": "gdeterminant",
      "title": "Generalized matrix determinant",
      "topics": [
        "gdeterminant"
      ]
    },
    {
      "page": "HMM",
      "title": "R6 class for hidden Markov model",
      "topics": [
        "HMM"
      ]
    },
    {
      "page": "hmmTMB_cols",
      "title": "hmmTMB colour palette",
      "topics": [
        "hmmTMB_cols"
      ]
    },
    {
      "page": "invmlogit",
      "title": "Multivarite inverse logit function",
      "topics": [
        "invmlogit"
      ]
    },
    {
      "page": "is_whole_number",
      "title": "Check if number of whole number",
      "topics": [
        "is_whole_number"
      ]
    },
    {
      "page": "logLik.HMM",
      "title": "logLik function for SDE objects",
      "topics": [
        "logLik.HMM"
      ]
    },
    {
      "page": "logsumexp",
      "title": "Log of sum of exponentials",
      "topics": [
        "logsumexp"
      ]
    },
    {
      "page": "make_cov",
      "title": "Make covariance matrix from standard deviations and correlations",
      "topics": [
        "make_cov"
      ]
    },
    {
      "page": "make_formulas",
      "title": "Process formulas and store in nested list",
      "topics": [
        "make_formulas"
      ]
    },
    {
      "page": "make_matrices",
      "title": "Create model matrices",
      "topics": [
        "make_matrices"
      ]
    },
    {
      "page": "MarkovChain",
      "title": "R6 class for HMM hidden process model",
      "topics": [
        "MarkovChain"
      ]
    },
    {
      "page": "mlogit",
      "title": "Multivariate logit function",
      "topics": [
        "mlogit"
      ]
    },
    {
      "page": "mvnorm_invlink",
      "title": "Multivariate Normal inverse link function",
      "topics": [
        "mvnorm_invlink"
      ]
    },
    {
      "page": "mvnorm_link",
      "title": "Multivariate Normal link function",
      "topics": [
        "mvnorm_link"
      ]
    },
    {
      "page": "na_fill",
      "title": "Fill in NAs",
      "topics": [
        "na_fill"
      ]
    },
    {
      "page": "Observation",
      "title": "R6 class for HMM observation model",
      "topics": [
        "Observation"
      ]
    },
    {
      "page": "prec_to_cov",
      "title": "Get covariance matrix from precision matrix",
      "topics": [
        "prec_to_cov"
      ]
    },
    {
      "page": "quad_pos_solve",
      "title": "Solve for positive root of quadratic ax^2 + bx + c = 0 when it exists",
      "topics": [
        "quad_pos_solve"
      ]
    },
    {
      "page": "rvm",
      "title": "Sample from von Mises distribution",
      "topics": [
        "rvm"
      ]
    },
    {
      "page": "rwrpcauchy",
      "title": "Sample from wrapped Cauchy distribution",
      "topics": [
        "rwrpcauchy"
      ]
    },
    {
      "page": "strip_comments",
      "title": "Strip comments marked with a hash from a character vector",
      "topics": [
        "strip_comments"
      ]
    },
    {
      "page": "update.HMM",
      "title": "Update a model to a new model by changing one formula",
      "topics": [
        "update.HMM"
      ]
    }
  ],
  "_readme": "https://github.com/theomichelot/hmmtmb/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "BH",
    "callr",
    "checkmate",
    "cli",
    "cpp11",
    "desc",
    "distributional",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "loo",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixStats",
    "mgcv",
    "nlme",
    "numDeriv",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "posterior",
    "processx",
    "ps",
    "QuickJSR",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "rlang",
    "rstan",
    "S7",
    "scales",
    "StanHeaders",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "TMB",
    "tmbstan",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 7.443169075796116,
  "_indexed": true,
  "_nocasepkg": "hmmtmb",
  "_universes": [
    "theomichelot"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-05-13T09:39:34.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "a99049ea325cad231ae79cb1eea72722c5404c46206ccf4b3495fb2d0e7756c4",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/25790367087"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-05-13T09:39:31.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "13e512dd55306d0eb7d18340f906e434bbe99f4a1051f271b0e0066353747072",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/25790367087"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-05-13T09:39:02.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "0019ed0d6acbcd04268c943ca5ca5e2485ba8aaa5479bed3d4bef9a5d43c23f5",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/25790367087"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-05-13T09:39:23.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "9aa969ec9678baa8fd073f76964c70eac1a270cb59304155d89fd458ffcecf1d",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/25790367087"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-05-13T09:39:17.000Z",
      "arch": "aarch64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "c7c83d1526a3a3d45b7b47996b6790cb6d1465ec447c328c29250097801d9abe",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/25790367087"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-05-13T09:41:51.000Z",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "4b4ee81cdc033487345576db09ad1a45d9858c2e4e1c6da8b31d1aacbc87793f",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/25790367087"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-05-13T09:38:49.000Z",
      "arch": "aarch64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "b39999c7f640e8b110b7525dbe9964c30ae3c1f1f0a3579b5aab77138e0b28b3",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/25790367087"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-05-13T09:39:28.000Z",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "d967d51d4531ed32a071445da13b40c8c5d492bf29d48faaa6430269fd60a8ad",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/25790367087"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-05-13T09:38:11.000Z",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "ebb5e115e3507991e55c8c012d26a56913282495b823d646f2892683eda29c11",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/25790367087"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-05-13T09:38:06.000Z",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "40c8f9e5e558e531208e0c9ecac7cc6ca2596d598ff6d7b4bd8684e1954f78c2",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/25790367087"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-05-13T09:38:05.000Z",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "a0c1c057bde97a7727d077539eddf766ebb6c0f0f600cac9a1eb7fcd612ecba8",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/25790367087"
    }
  ]
}