Installing rjags, on Mac El capitan 10.11.4
<p>I recive some error when trying to load the rjags. I use the standard <strong>install.packages("rjags")</strong>, which seems to be fine. But when I load the package, it does not work. This is what I get:</p>

<pre><code>&gt; library(rjags)
Loading required package: coda
Error : .onLoad failed in loadNamespace() for 'rjags', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.1/Resources/library/rjags/libs/rjags.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/rjags/libs/r jags.so, 10): Library not loaded: /usr/local/lib/libjags.3.dylib
  Referenced from: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/rjags/libs/rjags.so
  Reason: image not found
In addition: Warning messages:
1: package ‘rjags’ was built under R version 3.1.3 
2: package ‘coda’ was built under R version 3.1.3 
Error: package or namespace load failed for ‘rjags’
&gt; 
</code></pre>

<p>Any suggestions?</p>

<p>I use "R version 3.1.2 (2014-10-31)" "Pumpkin Helmet"</p>