wrong version of jags

Help
Jim Maas
2010-10-18
2012-09-01
  • Jim Maas

    Jim Maas - 2010-10-18

    I'm using R2jags and rjags version 2.1.1 installed, in this instance on
    Windows XP, but get this error when trying to run a model. Any suggestions
    about how to get it to find and use the correct version?

    R version 2.11.1 (2010-05-31)

    Copyright (C) 2010 The R Foundation for Statistical Computing

    ISBN 3-900051-07-0

    .

    .

    .

    .

    library(R2jags)

    Loading required package: coda

    Loading required package: lattice

    Loading required package: R2WinBUGS

    Loading required package: rjags

    Error : .onLoad failed in loadNamespace() for 'rjags', details:

    call: fun(...)

    error: Failed to locate JAGS 2.1.0 installation.

    Error: package 'rjags' could not be loaded

     
  • Jim Maas

    Jim Maas - 2010-10-19

    I think so, at a command prompt I get

    $ jags

    Welcome to JAGS 2.1.0 on Tue Oct 19 11:39:46 2010

    JAGS is free software and comes with ABSOLUTELY NO WARRANTY

    Loading module: basemod

    Loading module: bugs

    . ^C

    $

     
  • Martyn Plummer

    Martyn Plummer - 2010-10-19

    The rjags package is supposed to pick up the location of the JAGS installation
    from the Windows registry, since the installer will write the install location
    there. If this fails, you can set the environment variable JAGS_HOME before
    loading the rjags package.

    PS You say you are working on Windows XP but your example has a unix prompt.
    What's going on there?

     
  • Jim Maas

    Jim Maas - 2010-10-19

    I goofed! And there is no way to remove response from Sourceforge .... sorry!
    :-(

    J

     
  • Paul

    Paul - 2011-01-11

    Thanks for the advice for environment variable, in fact this is the only
    working solution I can found online!

    I have exact the same problem. I installed both JAGS 2.2.0-win64 and R 2.12.1,
    system is win 7 64bit.

    BTW: The installation manual is quite misleading. It is more about compile the
    executable than the actual installation.

     

Log in to post a comment.