nimble icon indicating copy to clipboard operation
nimble copied to clipboard

warnings don't seem to be warnings

Open oharar opened this issue 3 years ago • 3 comments

I've been trying to use suppressWarnings() to suppress warnings, and it doesn't work (e.g. on models with bad inits, when the MCMC finds the right part of the parameter space). I assume this means that Nimble warnings are being passed to R as something other than a warning class.

oharar avatar Nov 03 '21 12:11 oharar

@oharar Are you talking about warnings emitted while the MCMC runs?

paciorek avatar Nov 11 '21 16:11 paciorek

Yes. Or possibly at initialisation (which I guess counts).

oharar avatar Nov 11 '21 16:11 oharar

Whoops, lost track of this. Indeed we don't have a way of suppressing warnings printed out from compiled C++.

For messages from code run by NIMBLE uncompiled in R, I've done some work recently so that most of our messages are now controlled by nimbleOptions('verbose').

@perrydv Control over messages from C++ might be something to consider in our nCompiler revamp of the compilation system.

paciorek avatar Feb 03 '22 00:02 paciorek