[R-SIG-Mac] (no subject)

Simon Urbanek simon.urbanek at r-project.org
Tue Sep 23 01:32:55 CEST 2014


On Sep 22, 2014, at 7:13 PM, Joanna Burgar <J.Burgar at murdoch.edu.au> wrote:

> Good day,
> 
> I am trying to run R2jags on  R version 3.0.2 (2013-09-25) -- "Frisbee Sailing". I have downloaded jags (JAGS-Mavericks-3.4.0)

That's the problem - your'e using old R version with recent JAGS - that doesn't work. You should use most recent R (3.1.1 at this point) with the most recent JAGS. The other alternative is to use old R with old JAGS versions - not the best idea, though.

Cheers,
Simon




> and successfully installed both rjags and R2jags yet for some reason when I try and load the library(rjags) I receive the following error message:
> 
> 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.0/Resources/library/rjags/libs/rjags.so':
> dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/rjags/libs/rjags.so, 10): Symbol not found: __ZN5RangeC1ERKSt6vectorIiSaIiEES4_
> Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/rjags/libs/rjags.so
> Expected in: /usr/local/lib/libjags.3.dylib
> in /Library/Frameworks/R.framework/Versions/3.0/Resources/library/rjags/libs/rjags.so
> Error: package or namespace load failed for �rjags�
> 
> 
> Does anyone have any idea why this might be? I have also tried other versions of R and it doesn't seem to be working for them either.
> 
> Thanks!
> Joanna
> 
> _______________________________________________________
> install.packages("rjags", dependencies=TRUE)
> also installing the dependency �coda�
> 
> trying URL 'http://cran.ms.unimelb.edu.au/bin/macosx/contrib/3.0/coda_0.16-1.tgz'
> Content type 'application/x-gzip' length 195822 bytes (191 Kb)
> opened URL
> ==================================================
> downloaded 191 Kb
> 
> trying URL 'http://cran.ms.unimelb.edu.au/bin/macosx/contrib/3.0/rjags_3-13.tgz'
> Content type 'application/x-gzip' length 155926 bytes (152 Kb)
> opened URL
> ==================================================
> downloaded 152 Kb
> 
> 
> The downloaded binary packages are in
> /var/folders/zl/w_8jclgx3zngdxtn_kmfb79m0000gn/T//RtmpfXMoO5/downloaded_packages
> install.packages("R2jags", dependencies=TRUE)
> also installing the dependencies �abind�, �R2WinBUGS�
> 
> trying URL 'http://cran.ms.unimelb.edu.au/bin/macosx/contrib/3.0/abind_1.4-0.tgz'
> Content type 'application/x-gzip' length 32962 bytes (32 Kb)
> opened URL
> ==================================================
> downloaded 32 Kb
> 
> trying URL 'http://cran.ms.unimelb.edu.au/bin/macosx/contrib/3.0/R2WinBUGS_2.1-19.tgz'
> Content type 'application/x-gzip' length 777630 bytes (759 Kb)
> opened URL
> ==================================================
> downloaded 759 Kb
> 
> trying URL 'http://cran.ms.unimelb.edu.au/bin/macosx/contrib/3.0/R2jags_0.04-03.tgz'
> Content type 'application/x-gzip' length 55203 bytes (53 Kb)
> opened URL
> ==================================================
> downloaded 53 Kb
> 
> 
> The downloaded binary packages are in
> /var/folders/zl/w_8jclgx3zngdxtn_kmfb79m0000gn/T//RtmpfXMoO5/downloaded_packages
> 
> 
> library(rjags)
> Loading required package: coda
> Loading required package: lattice
> 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.0/Resources/library/rjags/libs/rjags.so':
> dlopen(/Library/Frameworks/R.framework/Versions/3.0/Resources/library/rjags/libs/rjags.so, 10): Symbol not found: __ZN5RangeC1ERKSt6vectorIiSaIiEES4_
> Referenced from: /Library/Frameworks/R.framework/Versions/3.0/Resources/library/rjags/libs/rjags.so
> Expected in: /usr/local/lib/libjags.3.dylib
> in /Library/Frameworks/R.framework/Versions/3.0/Resources/library/rjags/libs/rjags.so
> Error: package or namespace load failed for �rjags�
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list