繁体   English   中英

错误:BRug的程序包或名称空间加载失败

[英]Error: package or namespace load failed for BRugs

我是Mac OS用户,正在尝试在Windows上运行BRug(BRugs不适用于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)

任何建议将不胜感激。

我在一本书中读到“如果使用MacOS,则需要在WINE中运行Windows版本的R”。 然后访问以下网站,并提供有关软件包的更多说明。 http://www.openbugs.net/w/Downloads

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM