On Fri, 27 Aug 2010, Ruben Garcia Berasategui wrote:

Dear list members,

I'm trying to use JAGS 2.1.0 from within R but every time I try to load the rjags package I receive the following message:

Which version of 'the rjags package' and where did you get it from?
I have 2.1.0-6, installed as a binary from CRAN, and I see

tystie% otool -L rjags.so
rjags.so:
        rjags.so (compatibility version 0.0.0, current version 0.0.0)
        /usr/local/lib/libjags.2.dylib (compatibility version 3.0.0, current 
version 3.1.0)

so that is not the version you have (which is looking for /usr/local/lib/libjags.1.dylib).

My guess is that you have rjags_1.0.x.

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 library 
'/Library/Frameworks/R.framework/Resources/library/rjags/libs/i386/rjags.so':
 
dlopen(/Library/Frameworks/R.framework/Resources/library/rjags/libs/i386/rjags.so,
 10): Library not loaded: /usr/local/lib/libjags.1.dylib
 Referenced from: 
/Library/Frameworks/R.framework/Resources/library/rjags/libs/i386/rjags.so
 Reason: image not found
Error: package/namespace load failed for 'rjags'

Any help regarding how to solve this problem would be greatly appreciated.

Re-install rjags, maybe via update.packages() or the Package Installer menu item if you use R.app?

Many thanks in advance,
Ruben

--
Brian D. Ripley,                  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to