Demonstrate how to distribute cpp code for TMB
This installs the contributed code:
TMB:::install.contrib("https://github.com/kaskr/example_cpp/archive/master.zip")After that you can use it in a TMB model with:
#include <TMB.hpp>
#include <example_cpp/kasper.hpp>
using contrib::kasper::func;