Menu

#61 Rjags not finding/recognizing .dll file

v1.0_(example)
open
nobody
None
1
2023-03-07
2023-03-07
Anonymous
No

Hello,

I am having issues with rjags not being able to find/recognize JAGS or the bugs.dll file. I am running R v4.2.2. on Windows 10, and installed JAGS v4.3.2. without issue. When I try to load rjags I am getting the following error:

Error: package or namespace load failed for ‘rjags’:
.onLoad failed in loadNamespace() for 'rjags', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Program Files/JAGS/JAGS-4.3.2/x64/modules/bugs.dll':
LoadLibrary failure: The specified module could not be found.

The path specified in the error is correct, and I checked the folder and saw the "bugs.dll" file was there. I have tried uninstalling and reinstalling JAGS multiple times, and installing older versions of JAGS (4.3.1. and 4.0.0), which didn't work. I also tried running R as an administrator (I'm using my personal laptop) to see if that would help, but I am getting the same error. I've been scratching my head all day about this, any advice is appreciated!

Molly

Discussion

  • Martyn Plummer

    Martyn Plummer - 2023-03-07

    Confirmed. You can work around this by installing JAGS 4.3.1 instead. I don't know yet what happened but I have withdrawn the Windows binary for JAGS 4.3.2 from SourceForge until I can build one that works.

     
  • Anonymous

    Anonymous - 2023-03-07
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel