kaskr / RTMB

R bindings to TMB
Other
49 stars 6 forks source link

RTMB - R bindings for TMB

cran version

Description

The package RTMB provides a native R interface for a substantial 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:

More information, including vignettes (introduction / advanced) and documentation, can be found on the RTMB universe page.

Install

CRAN version

install.packages('RTMB')

Development version (Rtools/compiler not needed)

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

Source

NOTE: Requires at least TMB-1.9.7.

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

Test the package

tinytest::test_package("RTMB")

runs the tests.

Known issues

Other packages

Experimental parallel version available as a separate package 'RTMBp'

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

Experimental package to solve ODEs

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

documentation