[R] can't run rjags package in R project

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri May 13 06:41:40 CEST 2011


On Thu, 12 May 2011, besbesmany wrote:

> i've windows 7 64 bit operating system
> i run latest jags backage 2.2
> i make set enviroment variable for JAGS_home because the rjags in r program
> couldn't see the JAGS sw
> now the error is the following:
>
> Error : .onLoad failed in loadNamespace() for 'rjags', details:
> call: inDL(x, as.logical(local), as.logical(now), ...)
> error: unable to load shared object 'D:/Program
> Files/R/R-2.13.0/library/rjags/libs/x64/rjags.dll':
> LoadLibrary failure: %1 is not a valid Win32 application.
>
> Error: package/namespace load failed for 'rjags'
>
> what can i do

Follow the posting guide.  One thing missing here is the 'at a 
minimum' information that asked for.

My guess is that the problem here is that with 32-bit R you need 
32-bit JAGS and you have 64-bit JAGS installed.  But this is only a 
guess because the information about the R you are running is missing.

Also, the posting guide suggested that you contact the maintainer 
first.

> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>

-- 
Brian D. Ripley,                  ripley at 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



More information about the R-help mailing list