SourceForge has been redesigned. Learn more.

rjags error with

  • Anonymous

    Anonymous - 2012-09-10

    I'm trying to run rjags 3-5 with JAGSdist-3.1.0 CRAN and R 2.15.1 GUI 1.52 Leopard but keep getting an error. Below is the code and error msg. Any help would be appreciated! I thought I had all the updated versions of each and thus they should be compatible, but I don't know why rjags isn't loading in the library.



    install.packages("rjags", lib="/Library/Frameworks/R.framework/Versions/2.15/Resources/library")
    trying URL ''
    Content type 'application/x-gzip' length 387927 bytes (378 Kb)
    opened URL
    downloaded 378 Kb

    The downloaded binary packages are in

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

  • Martyn Plummer

    Martyn Plummer - 2012-09-11

    There is a known bug that strikes on Mac OS X 10.5 (but not later versions). Files that should be in /usr/local are installed into /local. Move them into the right location to fix the problem. See the jags blog for details.


Log in to post a comment.