2017-08-01 34 views
0

我是一個試圖在Windows上運行BRugs的Mac OS用戶(BRugs不是available for Mac)。但是我無法安裝BRugs軟件包。例如:錯誤:包或命名空間加載失敗的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

消息說,你需要先安裝Openbugs'在findOpenBUGS():OpenBUGS 3.2.2或更高版本必須是installed'第一 –

回答

0

我在一本書中讀到「如果你使用的是MacOS,你需要在WINE中運行R的Windows版本」。 然後轉到以下網站,並有關於軟件包的更多說明。 http://www.openbugs.net/w/Downloads

+0

你能澄清請,爲什麼它需要'WINE'? – Sergii

相關問題