Skip to content

Template Model Builder: A General Random Effect Tool Inspired by 'ADMB'

51packages dependsuggested by 11
661Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

With this tool, a user should be able to quickly implement complex random effect models through simple C++ templates. The package combines 'CppAD' (C++ automatic differentiation), 'Eigen' (templated matrix-vector library) and 'CHOLMOD' (sparse matrix routines available from R) to obtain an efficient implementation of the applied Laplace approximation with exact derivatives. Key features are: Automatic sparseness detection, parallelism through 'BLAS' and parallel user templates.

Changes in 1.9.25
  • add PROTECT/UNPROTECT to protect against false-positive rchk warning #418.
  • Finalize Eigen 5 compatibility.
  • Some internal TMB namespaces have been cleaned up.

From NEWS in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.5 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.9.25
READMENoVignettesNoNEWSYes · 33% structured · mentions 1.9.25Citation fileYes · cites a publication
Cites a JSS article
Help pages
31
Examples that run
17%2 run in a plain check · 10 never run
Exported functions with examples
39%
Documented parameters
96%
Return-value docs
57%
Help pages citing references
0%

Downloads

661K
CRAN downloads in the past year
Rank #451 · ~1.8K/day · ~55.1K/mo
Daily download trend is not available in this view yet.
61K30 days
176.8K90 days
661K1 year
Compare downloads with other packages →
Also on10.1K r2u146 autocran31.3K conda_forge305 c2d4u

Repository

195Stars
91Forks
70Open issues
4Open PRs
20Releases
1,600Commits
35Commit identities
1,600 commits · Last activity 2026-10-09 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
63%
Median days to close, 50 most recently updated closed issues
6
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-10-14 · 1902026-08-29 · 195
PracticesBeta

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

Checks run against github.com/kaskr/adcomp on 2026-10-18.

Continuous integration (1)
Travis CI (config file)
Governance and community (1)
Issue templates
Docs source (1)

GitHub Pages site last deployed 2024-04-04

Reproducibility and dev environment (1)
Makefile
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

Installing TMB adds 2 packages (2 with compiled code, 3.5 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppEigen 1.7 MB.

Depends (1)
R >= 3.0.0
Imports (5)
graphicsmethodsstatsutilsMatrix
LinkingTo (2)
MatrixRcppEigen
Suggests (2)
numDerivparallel
Enhances (0)
none

People & History

People (12)
Author, Maintainer since 1.6.1 (2015), Copyright holder
Contributor · added in 1.6.2
Contributor · added in 1.6.2
Contributor · added in 1.7.6
Contributor · added in 1.6.2
Contributor · added in 1.6.2
Contributor · added in 1.6.2
Contributor · added in 1.7.9
Contributor · added in 1.6.5
Show 2 more contributorsHide 2 contributors
Contributor · added in 1.6.2
Contributor · added in 1.6.2
Copyright holder · added in 1.6.2
Releases (52)

Pick two releases to compare their code metrics.

Show 48 earlier eventsHide 48 earlier events

Package metadata

First published
2015-10-15
Total releases
52 / 11 yrs
License
GPL-2 OSI
Copyright
See the file COPYRIGHTS
Minimum R
≥ 3.0.0
Download size
763 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("TMB")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.18637/jss.v070.i05, 10.1007/s10651-017-0372-4.

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 TMB version 1.9.25 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-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