Thanks for the fix! That is very bizarre! The problem has been happening on the last few datasets I've worked with, but I have data where I don't see the problem. Very mysterious, but your solution was a great motivation to switch to rjags, which I also got to work thanks to your advice.
It seems no matter what model I'm trying to build I get the following error on the last line: model <- jags.model(textConnection(AllLines), data = list(), n.chains = num_cores) Compiling model graph Resolving undeclared variables Allocating nodes Deleting model Error in jags.model(textConnection(AllLines), data = list(), n.chains = num_cores) : RUNTIME ERROR: Compilation error on line 143. Unknown variable CVD.p Either supply values for this variable with the data or define it on the left hand side...