无法加载rjags

时间:2015-10-27 00:49:42

标签: jags

尝试加载rjags时出现以下错误。我最近升级到OSX El Capitain并安装了最新版本的JAGS 4.0.1。有谁知道如何修理它?

 library(rjags)
Error : .onLoad failed in loadNamespace() for 'rjags', details:
  call: dyn.load(file)
  error: unable to load shared object '/usr/local/lib/JAGS/modules-3/bugs.so':
  dlopen(/usr/local/lib/JAGS/modules-3/bugs.so, 6): Symbol not found: _R_finite
  Referenced from: /usr/local/lib/JAGS/modules-3/bugs.so
  Expected in: /usr/local/lib/libjrmath.0.dylib
 in /usr/local/lib/JAGS/modules-3/bugs.so
Error: package or namespace load failed for ‘rjags’

1 个答案:

答案 0 :(得分:0)

我通过安装rjags软件包的开发版本找到了解决方案。

http://sourceforge.net/projects/mcmc-jags/files/rjags/4/