FBartos / RoBMA

RoBMA R package for estimating robust Bayesian meta-analyses
https://fbartos.github.io/RoBMA/
8 stars 3 forks source link

Error in Loading about runjags #6

Closed ciuhkimo closed 3 years ago

ciuhkimo commented 3 years ago

When I just tried to using library(RoBMA), the message shows:

Loading required namespace: runjags Please, note the following changes in version 1.2.0 (see NEWS for more details):

I have no idea about what's wrong with my coding. I just use the R 4.0.5 with RStudio under arm system M1 MacBook.

FBartos commented 3 years ago

Hi @ciuhkimo,

thanks for reporting the bug. Could you check whether you have JAGs installed on your laptop?

For example by running this rjags snippet:

library(rjags)
data(LINE)
LINE$recompile()
LINE.samples <- jags.samples(LINE, c("alpha","beta","sigma"),
                             n.iter=1000)
LINE.samples

Cheers, Frantisek

ciuhkimo commented 3 years ago

Hi @ciuhkimo,

thanks for reporting the bug. Could you check whether you have JAGs installed on your laptop?

For example by running this rjags snippet:

library(rjags)
data(LINE)
LINE$recompile()
LINE.samples <- jags.samples(LINE, c("alpha","beta","sigma"),
                             n.iter=1000)
LINE.samples

Cheers, Frantisek

Thank you! I found I haven't installed JAGs on my laptop.

FBartos commented 3 years ago

Awesome, thanks for letting me know!