nimble-dev / nimble

The base NIMBLE package for R
http://R-nimble.org
BSD 3-Clause "New" or "Revised" License
158 stars 24 forks source link

Documentation for creating extensions in C/C++? #1323

Closed csbrown closed 1 year ago

csbrown commented 1 year ago

I am trying to create some models that involve distributions not available in R/Nimble. I am comfortable creating those distributions in C/C++, and, e.g., doing the usual process to expose those distributions in R. Is something similar available for Nimble, so that I can call my custom distribution defined in C++ as a Nimblefunction? If so, is there documentation for this process, and/or examples of such a custom C++ Nimblefunction?

paciorek commented 1 year ago

Please see help(nimbleExternalCall). I don't think we have any extended examples of this, unfortunately. We do have a bit of an example here.

If you have questions about it or other questions, we encourage use of our nimble-users list.