pveber / morse

Companion R package for MOSAIC website
7 stars 5 forks source link

morse will not load #293

Open Pontius06 opened 2 years ago

Pontius06 commented 2 years ago
  1. I have successfully installed, loaded and tested JAGS as follows:

    if(is.element('runjags', installed.packages()[,1]) == FALSE){

    • install.packages('runjags')
    • } library("runjags") testjags() You are using R version 4.1.3 (2022-03-10) on a windows machine, with the RStudio GUI JAGS version 4.3.1 found successfully using the command 'C:/Program Files/JAGS/JAGS-4.3.1/x64/bin/jags-terminal.exe' The rjags package is installed
  2. I installed the morse package with it dependencies but as follows:

    if(is.element('morse', installed.packages()[,1]) == FALSE){

    • install.packages('morse')
    • }
  3. But I am unable to load more from the library. I get the error message below:

    library(morse) Error: package or namespace load failed for ‘morse’: .onLoad failed in loadNamespace() for 'rjags', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Users/kojom/Documents/R/win-library/4.1/rjags/libs/x64/rjags.dll': LoadLibrary failure: The specified procedure could not be found.

  4. Any help to be able to load morse will very much be appreciated.

sandrinecharles commented 2 years ago

Hi @Pontius06 have you first installed JAGS from here: https://mcmc-jags.sourceforge.io/. If not, that maybe explain your troubles.

Pontius06 commented 2 years ago
  1. Yes I have installed JAGS, I am able to load it from library, and I am able to testrun it. (See my (1) of my original submission). I get the message below when I did the testrun:

You are using R version 4.1.3 (2022-03-10) on a windows machine, with the RStudio GUI JAGS version 4.3.1 found successfully using the command 'C:/Program Files/JAGS/JAGS-4.3.1/x64/bin/jags-terminal.exe' The rjags package is installed

  1. I installed as below:

if(is.element('morse', installed.packages()[,1]) == FALSE){

  • install.packages('morse')
  • }
  1. The problem is I am not able to load morse: I get the message below if I do:

library(morse) Error: package or namespace load failed for ‘morse’: .onLoad failed in loadNamespace() for 'rjags', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Users/kojom/Documents/R/win-library/4.1/rjags/libs/x64/rjags.dll': LoadLibrary failure: The specified procedure could not be found.

virgile-baudrot commented 2 years ago

It seems to be a problem on "rjags" and not on "morse". Now, this kind of message say that it's a sys admin issue.

Does rjags load on its own?

library("rjags")