A minimal working example of how to compile and register TMB code properly in a package when you need more than one source C++ file, or a DLL with a different name than the package itself.
If running devtools::check()
, be sure to call it as: devtools::check(cran = FALSE)
to avoid an error about the DLL not being able to be found, or delete the .dll
or .so
files prior to running devtools::check()
.
https://travis-ci.com/cgrandin/tmbcompilationmwe.svg?branch=master&status=started
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.