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
Loading required package: coda
Loading required package: lattice
Loading required package: R2WinBUGS
Loading required package: rjags
Error : .onLoad failed in loadNamespace() for 'rjags', details:
error: Failed to locate JAGS 2.1.0 installation.
Error: package 'rjags' could not be loaded
Did you actually install JAGS? The rjags package is just an interface.
I think so, at a command prompt I get
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
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?
I goofed! And there is no way to remove response from Sourceforge .... sorry!
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.