Skip to content

User contributed code

kaskr edited this page Nov 23, 2022 · 6 revisions

How

You can make C++ code available to other TMB users via the (undocumented) TMB:::install.contrib R function. The code does not become part of the main TMB distribution:

  • You can develop features on your own github account independent of the TMB source tree.
  • Your code changes become available immediately once you push them. Users do not have to update TMB to get your most recent changes.

A simple example is available here.

List of packages (please add packages here)

  • Bridge distributions. Install using
    TMB:::install.contrib("https://github.com/swihart/tmb_mrim/archive/master.zip")
  • One-step-ahead residuals for multivariate distributions. Install using
    TMB:::install.contrib("https://github.com/vtrijoulet/OSA_multivariate_dists/archive/main.zip")
  • Atomic symmetric matrix square root. Install using
    TMB:::install.contrib("https://github.com/lawlerem/adcomp_sqrtm/archive/master.zip")
Clone this wiki locally