Enhance inits= diagnostics
Brought to you by:
martyn_plummer
At the moment, if there is an error in specifying jags.model(inits=), rjags just outputs the basic message ("Invalid initial values"). The proposed patch provides more specific description of the error. The check done is only once -- when the init.values for all the chains has been assigned.
It also makes jags.model() treat inits=NULL as no initial values specified (previously only missing() was checked).
Anonymous
Nice patch. Thank you. I have checked this in and added you as a contributor.