{
  "_id": "6a49ffb85cca5d75a1614872",
  "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-06-12 11:01:50 UTC",
    "User": "root"
  },
  "Author": "Theo Michelot [aut, cre],\nRichard Glennie [aut, ctb]",
  "_user": "theomichelot",
  "_type": "src",
  "_file": "hmmTMB_1.1.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/664ec0d5e05be5e1264f463acf2292cc845778fce79fcee62f26a11fd9d5ffea",
  "_filesize": 5524695,
  "_sha256": "664ec0d5e05be5e1264f463acf2292cc845778fce79fcee62f26a11fd9d5ffea",
  "_expires": "2026-10-13T06:54:46.000Z",
  "_created": "2026-06-12T11:01:50.000Z",
  "_published": "2026-07-05T06:54:48.087Z",
  "_jobs": [
    {
      "job": 85200859159,
      "time": 359,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7589934559"
    },
    {
      "job": 85200859405,
      "time": 356,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7589933818"
    },
    {
      "job": 85200859234,
      "time": 346,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7589930532"
    },
    {
      "job": 85200859456,
      "time": 397,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7589946197"
    },
    {
      "job": 85200859233,
      "time": 303,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7589936098"
    },
    {
      "job": 85200859441,
      "time": 505,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7589998694"
    },
    {
      "job": 85200859374,
      "time": 304,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7589936314"
    },
    {
      "job": 85200859427,
      "time": 786,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7590087228"
    },
    {
      "job": 85200859012,
      "time": 661,
      "config": "source",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7589825167"
    },
    {
      "job": 85200859395,
      "time": 146,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 85200859260,
      "time": 339,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7589928634"
    },
    {
      "job": 85200859377,
      "time": 357,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7589933722"
    },
    {
      "job": 85200859294,
      "time": 371,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7589938734"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/theomichelot/actions/runs/27411159233",
  "_status": "failure",
  "_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",
    "description": "Assistant professor in statistics at Dalhousie University, Halifax, Canada",
    "uuid": 7921822
  },
  "_distro": "noble",
  "_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-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": 299,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hmmTMB"
  },
  "_devurl": "https://github.com/theomichelot/hmmtmb",
  "_searchresults": 127,
  "_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",
    "otel",
    "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.510343901389913,
  "_indexed": true,
  "_nocasepkg": "hmmtmb",
  "_universes": [
    "theomichelot"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-06-12T11:06:35.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "https://r2.ropensci.org/d5733fbb07376e267b866c40fea071dff3bc6a3615ab0e73653d9cce1cfcdbc6",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/27411159233"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-06-12T11:06:02.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "https://r2.ropensci.org/82bcc9b82fef8d1ebead56de681feabcb4f826164d416db01f387fa3d0505b6f",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/27411159233"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-06-12T11:06:03.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "https://r2.ropensci.org/5629be397bd258139735d7c47aac164fce689002e352f179997db5a80a0c9090",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/27411159233"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.2",
      "date": "2026-06-12T11:06:50.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "https://r2.ropensci.org/eff05a81532bc5293f6ddd4f88e7c19691371ff85fa8e2ef6d7b28e41cc49a3b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/27411159233"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-06-12T11:06:36.000Z",
      "arch": "aarch64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "https://r2.ropensci.org/7a81ef1bb51888c3148ca943aed4749db193506950c125b343be92b8d91ff42c",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/27411159233"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-06-12T11:07:36.000Z",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "https://r2.ropensci.org/96c54f30d6ac252b35be0f92eac2a0f6a82833f576d18420e808e545086ce132",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/27411159233"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-06-12T11:06:18.000Z",
      "arch": "aarch64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "https://r2.ropensci.org/023b34a3776157ae611c1db0f3b3f459e63bde4a5086fd0488aaa64c78fc7cd0",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/27411159233"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.2",
      "date": "2026-06-12T11:10:02.000Z",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "https://r2.ropensci.org/f151b01bca678f11b1e71841ebf04108d5b906b6834fbffeb279f5619df4801b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/27411159233"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-06-12T11:04:45.000Z",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "https://r2.ropensci.org/d9d606fdafd0393e1a5e7f68b4401074eebb6b9f57bb829cb2ccce9db5f07bca",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/27411159233"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-06-12T11:05:10.000Z",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "https://r2.ropensci.org/40acd2569f76475eac378d670fc7e341eaf904b7381d20e13bddc9723ed90c86",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/27411159233"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.2",
      "date": "2026-06-12T11:05:01.000Z",
      "arch": "x86_64",
      "commit": "ce29b6b207dc52809d7f233e5035e3420202df7b",
      "fileid": "https://r2.ropensci.org/94724ed2f3baa8298e7ab8150c4b9cd6b20483bb94e88ca2ac2ee60183e1200e",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/theomichelot/actions/runs/27411159233"
    }
  ]
}