我是一位试图在Windows上运行BRugs的Mac OS用户(BRugs不是available for Mac)。但是我无法安装BRugs软件包。例如:
> library(BRugs)
Error : .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.3.3
2: In findOpenBUGS() : OpenBUGS 3.2.2 or greater must be installed
(if so, this indicates missing registry keys of OpenBUGS).
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'
Error: package or namespace load failed for ‘BRugs’
我还尝试重新安装BRugs,但错误仍然存在:
> remove.packages("BRugs")
> install.packages("BRugs", dependencies=TRUE)
非常感谢任何建议。
答案 0 :(得分:0)
我在一本书中读到,如果你正在使用MacOS,你需要在WINE&#34;中运行R版本的Windows。 然后转到以下网站,有关于包的更多说明。 http://www.openbugs.net/w/Downloads