[R-sig-Geo] R2Winbugs - problem with workign directory

James Rooney ROONEYJ4 at tcd.ie
Mon Aug 5 08:44:32 CEST 2013


Hi all,

Having a problem with the R2Winbugs working.directory option.

My call to winbugs looks like this:

MCMCres<-bugs(debug=T,data=d,inits=inits,parameters.to.save=c("theta","alpha","tau","precv"),
              n.chains=2,n.iter=2000,n.burnin=500,n.thin=10, 
              model.file="ALS_spatial_CAR.txt", program="WinBUGS", WINE=WINE, WINEPATH=WINEPATH,useWINE=T,
              working.directory=".",codaPkg=F)

If I remove the working.directory option this all works fine.
If I leave it in - winbugs opens but doesn't load any model and doesn't do anything. It IS finding the model specification file because if it doens't R2winbugs gives an error.

I'm totally at a loss as to what is going on. Any ideas ?

This same line of code runs fine by the way if I open a Windows virtual machine and run R directly under winbugs - the problem there is the VM has limited memory and process allocation.

I hope someone can help! Many thanks,

James


More information about the R-sig-Geo mailing list