Menu

#12 Installing Error

v1.0_(example)
open
nobody
1
2025-02-24
2022-08-09
Anonymous
No

Hi I have troubles to instsall jags. I am using Rstudio.
This is the Error

library(rjags)
Error: Laden von Paket oder Namensraum für ‘rjags’: fehlgeschlagen
.onLoad in loadNamespace() für 'rjags' fehlgeschlagen, Details:
Aufruf: inDL(x, as.logical(local), as.logical(now), ...)
Fehler: unable to load shared object 'Z:/Documents/Cran-R/rjags/libs/x64/rjags.dll':
LoadLibrary failure: Die angegebene Prozedur wurde nicht gefunden.
In addition: Warning message:
Paket ‘rjags’ wurde unter R Version 4.1.3 erstellt

I checked the folder and everything is there so I don't know what I can do to install it.

Best,
Verena

Discussion

  • Martyn Plummer

    Martyn Plummer - 2022-08-09

    This is probably an issue with binary compatibility between, R, rjags, and JAGS. All three software components must be built with the same compiler.

    If you are using R 4.2.0 or later then you need the version of JAGS compiled with the new UCRT toolchain for R (Rtools42):

    https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Windows/JAGS-4.3.1.exe

    If you previously installed the rjags package under R 4.1.3 or earlier, then you need to reinstall it.

    If you are using R 4.1.3 or earlier then you need the older release of JAGS which is compiled with the older R tool chain (Rtools40).

    https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Windows/JAGS-4.3.0.exe

    and the appropriate version of rjags for your release.

     
  • Anonymous

    Anonymous - 2025-02-24
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.