R2WinBUGS - Warning messages

北城余情 提交于 2019-12-06 04:36:23

Probably it is windows UAC fault. By default UAC doesn't allow programms to write in almost anything except the user's folder. You can change that by running R as administrator. But I think that will change the library folder unless it is hardcoded in Renviron.site (inside R\etc folder), but I'm not 100% sure about that.

I was able to fix the problem by defining "bugs.directory".

out <- bugs(data = win.data, inits = inits, parameters.to.save = params, model.file = "model.txt", n.thin = nt, n.chains = nc, n.burnin = nb, n.iter = ni, debug = FALSE, DIC = TRUE, working.directory = getwd(), bugs.directory = 'c:/WinBUGS14')

Your link goes out to a huge file that spans many chapters of a book. In the comments section it says:

# You may have to add a 'working.directory' argument to calls to
# the function bugs().

Have you done that yet? There's also a bunch of user-specific stuff like:

setwd("C:/_Marc Kery/_WinBUGS book/Naked code") # May have to adapt that

Have you appropriately modified those items?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!