请教各位一个问题:
我想用R调用OpenBUGS实现MCMC的GIbbs抽样和M-H算法,其中,需要加载BRugs包,我安装了,但是library的时候,出现了这个问题,请问怎么解决?我不知道哪个版本的R可以调用3.2.1的OpenBUGS,OpenBUGS网站我登不上去,下载不了新版本
> library(BRugs)
Error: package or namespace load failed for ‘BRugs’:
.onLoad failed in loadNamespace() for 'BRugs', details:
call: if (!is.na(ob$version)) msg <- paste(msg, "version", ob$version) else msg <- paste(msg,
error: argument is of length zero
In addition: Warning messages:
1: package ‘BRugs’ was built under R version 3.4.4
2: In findOpenBUGS() : Found OpenBUGS version 3.2.1.
Requires 3.2.2 or greater.
Setting the environment variable 'OpenBUGS_PATH' in advance of loading 'BRugs' overwrites the path.
See ?loadOpenBUGS in order to load OpenBUGS manually.
3: In is.na(ob$version) :
is.na() applied to non-(list or vector) of type 'NULL'
>
这个问题怎么解决呀?
各位大神,如何实现R调用OpenBUGS软件包的,有没有相关程序?