building R packages using nimble

Skip to first unread message

Patrick Schmidt

Jun 14, 2021, 4:39:24 AMJun 14
to nimble-users
Hi everybody,

I use packages for my own workflow and intend to generate some public packages with nimble, too. I wonder if there is some general advice on the particularities of nimble in this context. 

For example, it seems that any nimble functions (including distributions) need to be exported even if they are called from within the package (where normal R namepath behavior would suggest otherwise).

Any hints on where to start (e.g., copying the approach of established packages) or general advise would be very helpful.


Chris Paciorek

Jun 15, 2021, 8:37:39 PMJun 15
to Patrick Schmidt, nimble-users
hi Patrick

We're happy to hear you're planning to create packages that make use of nimble. As you suggest, I think the most helpful thing might be to point you to some of the existing packages that depend on nimble (e.g., nimbleEcology, nimbleSMC, nimbleSCR, BayesNSGP). You could take a look at their source to see how they have handled things.

While dealing with export/namespace issues is in my court on the nimble development team, I'm not remembering at the moment what needs to be exported in this case. After you look at how those other packages have done things, if you see behavior that seems non-standard/suboptimal, please let us know and we can look into it in detail. One of our current goals is to make it straightforward to create packages that depend on nimble, so we want to hear about any difficulties.


You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages