'R' Bindings for 'TMB'
Overview
Native 'R' interface to 'TMB' (Template Model Builder) so models can be written entirely in 'R' rather than 'C++'. Automatic differentiation, to any order, is available for a rich subset of 'R' features, including linear algebra for dense and sparse matrices, complex arithmetic, Fast Fourier Transform, probability distributions and special functions. 'RTMB' provides easy access to model fitting and validation following the principles of Kristensen, K., Nielsen, A., Berg, C. W., Skaug, H., & Bell, B. M. (2016) DOI:10.18637/jss.v070.i05 and Thygesen, U.H., Albertsen, C.M., Berg, C.W. et al. (2017) DOI:10.1007/s10651-017-0372-4.
- Print and store TMB version on install.
- Interface to combinom special functions.
- Fix ADjoint() when user function calls oher tape (#91).
- Fix subtle bug caused by lazy evaluation inside MakeTape() (#90).
- Change dnorm order as in TMB (github.com/glmmTMB/glmmRTMB/issues/4).
- Add experimental obj$vectorize().
- Add dflat().
- dautoreg() fixes:
- Speedup construction of stationary variance.
- Fix simulation code (only worked for length(phi)==1).
- Add atan2() (#82).
From NEWS in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-22
Show 5 earlier changesHide 5 earlier changes
- ERROR11 OK, 1 ERROR2026-04-25
- WARNING11 OK, 3 WARNING2026-04-22
- ERROR10 OK, 3 WARNING, 1 ERROR2026-04-18
- WARNING11 OK, 3 WARNING2026-03-25
- ERROR5 OK, 3 NOTE, 6 ERROR2026-03-10
Documentation
- Help pages
- 21includes a package overview page
- Examples that run
- 100%18 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 87%
- Return-value docs
- 93%
- Help pages citing references
- 5%
Downloads
Repository
- PRs merged (all time)
- 82%
- Median days to close, 50 most recently updated closed issues
- 4
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/kaskr/rtmb on 2026-10-18.
Dependencies
Installing RTMB adds 3 packages (3 with compiled code, 4.2 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppEigen 1.7 MB, TMB 763 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 2.0Latest
- RR 4.6.0 released · 2026-04-24
- 1.9
- 1.8
- RR 4.5.0 released · 2025-04-11
- 1.7
- 1.6
- RR 4.4.0 released · 2024-04-24
- 1.5
- 1.4
- 1.3
- 1.22023-08-10
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-08-10
- Total releases
- 9 / 3 yrs
- License
- GPL (>= 2) OSI
- Download size
- 669 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("RTMB")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.