Skip to content

skaug/RTMB

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RTMB - R bindings for TMB

Motivation

The package RTMB provides a native R interface for a subset of TMB so you can avoid coding in C++.

RTMB only affects the TMB function MakeADFun that builds the objective function. Once MakeADFun has been invoked, everything else is exactly the same and models run as fast as if coded in C++.

PROS:

  • Fast to change and re-run models because no compilation is needed.
  • Debugging can be performed using the normal R debugger rather than gdb.

CONS:

Install

Binary (Windows/Mac without compiler)

Run from R:

install.packages('RTMB', repos = c('https://kaskr.r-universe.dev', 'https://cloud.r-project.org'))

See documentation page. A parallel version is available as a separate package 'RTMBp'

Source

NOTE: Requires at least TMB-1.9.3.

remotes::install_github("https://github.com/kaskr/RTMB", subdir="RTMB")

Known issues

  • If you get a segfault while installing the package, please re-install Rcpp from source and try again (see kaskr#5).

About

R bindings to TMB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 76.0%
  • C++ 22.7%
  • Other 1.3%