
If it does type the following to close R: q()
#INSTALL PACKAGES IN R FOR MAC INSTALL#

PATH=/opt/local/bin:/opt/local/sbin:$PATH
#INSTALL PACKAGES IN R FOR MAC MAC#
The definitive guide to installing rattle on the Mac as of June Tar: Error exit delayed from previous errors.Įrror in if (!file.exists(file.Rattle: Installation on Macintosh OS X (Leopard and Lion) I installed jags from source as you suggested in the solution above but I get the following error: with-jags-lib=/Users/casallas/homebrew/opt/jags/lib' The easiest solution is to install rjags from source, using devtools::install_url with the following configure.args, as specified in rjags README: devtools::install_url("",Īrgs="-configure-args='-with-jags-include=/Users/casallas/homebrew/opt/jags/include/JAGS

Referenced from: /Users/casallas/Library/R/3.0/library/rjags/libs/rjags.soĮrror: package or namespace load failed for ‘rjags’Īs you can see, rjags is expecting jags to be in /usr/local.

)Įrror: unable to load shared object '/Users/casallas/Library/R/3.0/library/rjags/libs/rjags.so':ĭlopen(/Users/casallas/Library/R/3.0/library/rjags/libs/rjags.so, 10): Library not loaded: /usr/local/lib/libjags.3.dylib onLoad failed in loadNamespace() for 'rjags', details:Ĭall: dyn.load(file, DLLpath = DLLpath. However, my homebrew is setup on my home directory ( /Users/casallas/homebrew) rather than the default, /usr/local.Įverything works fine, except that loading the library doesn't work: library(rjags)Įrror. Non-default jags installation The problem

Setting the correct CC and CXX, in my case: CC=clangĭo this and then retry install.packages("rjags") or devtools::install_url. It's probably because R is not finding the right compiler, therefore you need to create or modify the file ~/.R/Makevars If you run into a problem like: configure: error: C++ compiler cannot create executables
