Closed paciorek closed 5 months ago
code= nimbleCode({ y[2] ~ dnorm(0,1) }) m <- nimbleModel(code) getParam(m,'y[1]','mean')
Error in getParam(m, "y[1]", "mean") : getParam only works for one node at a time, but y[1] includes multiple nodes.
Problem is that we check if there is not one node but don't distinguish 0 nodes from >1 nodes.
Fixing this on devel to give an accurate error msg.