I am having a problem calling R2OpenBUGS. I suspect it is probably simple to fix but I can't spot the solution.
My call looks like this:
MCMCres<-bugs(data=d,inits=inits,parameters.to.save=c("theta","alpha","tau","precv"),
n.iter=2000,model.file="model.txt",n.chains=2,n.burnin=250,n.thin=5,
OpenBUGS.pgm=BugsDir,codaPkg=F,working.directory=wdir,debug=T,WINE=NULL)
The error I get back is as follows:
Error in bugs.run(n.burnin, OpenBUGS.pgm, debug = debug, WINE = WINE, :
Look at the log file in C:/Users/James/Desktop/ALS Spatial Analysis/ALS and
try again with 'debug=TRUE' to figure out what went wrong within OpenBUGS.
Now OpenBUGS isn't even opening so the log file is not written. I'm not sure whats going on since this is all I have to go on. It is finding the OpenBUGS executable and it is finding the model file as those were errors I had gotten previously and have fixed.
Any ideas anyone ?