> 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'
>
非常感谢
显示已经可以链接了。还是程序小白,还在学习中,以后请多多指教~
> library(BRugs)
Welcome to BRugs connected to OpenBUGS version 3.2.3
Warning message:
package ‘BRugs’ was built under R version 3.4.4
>