Hello,
I am trying to run JAGS in my R-studio but for some reason it's not working. I have a mac 10.12.6 and am running the latest vesion of R compatable with my mac.
I installed JAGS and then installed rjags. but when I try to call rjags using "library("rjags")" , I get the following error output:
Loading required package: coda
Error: package or namespace load failed for ‘rjags’:
.onLoad failed in loadNamespace() for 'rjags', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rjags/libs/rjags.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rjags/libs/rjags.so, 10): Library not loaded: /usr/local/lib/libjags.4.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/rjags/libs/rjags.so
Reason: image not found
I tried, reinstalling r, JAGS, rjags but nothing is working out. Please let know what should I do to fix this.
Anonymous