和很多其他人一样,我在加载和安装rjags时遇到了问题。
我收到错误:
library(rjags)
Error : .onLoad failed in loadNamespace() for 'rjags', details:
call: fun(libname, pkgname)
error: Failed to locate any version of JAGS version 3
The rjags package is just an interface to the JAGS library
Make sure you have installed JAGS-3.0.0.exe or higher from
http://www.sourceforge.net/projects/mcmc-jags/files
Error: package or namespace load failed for ‘rjags’
我在PC上运行R 3.2.2(Windows 10),并安装了JAGS程序:C:\Program Files\JAGS\JAGS-4.0.0
有没有办法让R说服JAGS真的,真实和诚实地安装?我甚至在后台打开它?
非常感谢任何帮助。
答案 0 :(得分:4)
我已经解决了这个问题。看来rjags与JAGS 4.0不兼容,您可以在以下地址安装JAGS 3.0:http://sourceforge.net/projects/mcmc-jags/files/JAGS/3.x/Windows/
答案 1 :(得分:0)
虽然它还没有在CRAN上,你可以从这里下载JAGS 4.0.0的rjags包http://sourceforge.net/projects/mcmc-jags/files/rjags/4/