Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mrbayes)
  > 
  > test_check("mrbayes")
  ── 1. Error: MR-Egger using default prior method (@test-mr_egger_rjags.R#16)  ──
  WEIRD RETURN VALUE: 0x1
  Backtrace:
   1. mrbayes::mr_egger_rjags(mrdat, seed = 123)
   2. rjags::jags.model(...)
   3. rjags:::.quiet.messages(TRUE)
  
  ── 2. Error: MR-Egger using weak prior method (@test-mr_egger_rjags.R#34)  ─────
  WEIRD RETURN VALUE: 0x1
  Backtrace:
   1. mrbayes::mr_egger_rjags(mrdat, prior = "weak", seed = 123)
   2. rjags::jags.model(...)
   3. rjags:::.quiet.messages(TRUE)
  
  ── 3. Error: MR-Egger using pseudo prior method (@test-mr_egger_rjags.R#53)  ───
  WEIRD RETURN VALUE: 0x1
  Backtrace:
   1. mrbayes::mr_egger_rjags(mrdat, prior = "pseudo", seed = 123)
   2. rjags::jags.model(...)
   3. rjags:::.quiet.messages(TRUE)
  
  ── 4. Error: MR-Egger using betaprior and sigmaprior method (@test-mr_egger_rjag
  WEIRD RETURN VALUE: 0x1
  Backtrace:
   1. mrbayes::mr_egger_rjags(...)
   2. rjags::jags.model(...)
   3. rjags:::.quiet.messages(TRUE)
  
  ── 5. Error: IVW using default prior method (@test-mr_ivw_rjags.R#20)  ─────────
  WEIRD RETURN VALUE: 0x1
  Backtrace:
   1. mrbayes::mr_ivw_rjags(mrdat, seed = 123)
   2. rjags::jags.model(...)
   3. rjags:::.quiet.messages(TRUE)
  
  ── 6. Error: IVW using weak prior method (@test-mr_ivw_rjags.R#36)  ────────────
  WEIRD RETURN VALUE: 0x1
  Backtrace:
   1. mrbayes::mr_ivw_rjags(mrdat, prior = "weak", seed = 123)
   2. rjags::jags.model(...)
   3. rjags:::.quiet.messages(TRUE)
  
  ── 7. Error: IVW using pseudo prior method (@test-mr_ivw_rjags.R#51)  ──────────
  WEIRD RETURN VALUE: 0x1
  Backtrace:
   1. mrbayes::mr_ivw_rjags(mrdat, prior = "pseudo", seed = 123)
   2. rjags::jags.model(...)
   3. rjags:::.quiet.messages(TRUE)
  
  ── 8. Error: IVW using beta prior method (@test-mr_ivw_rjags.R#67)  ────────────
  WEIRD RETURN VALUE: 0x1
  Backtrace:
   1. mrbayes::mr_ivw_rjags(mrdat, betaprior = "dnorm(0, 1E-6)", seed = 123)
   2. rjags::jags.model(...)
   3. rjags:::.quiet.messages(TRUE)
  
  ── 9. Error: Radial-Egger using default prior method (@test-mr_radialegger_rjags
  WEIRD RETURN VALUE: 0x1
  Backtrace:
   1. mrbayes::mr_radialegger_rjags(mrdat, seed = 123)
   2. rjags::jags.model(...)
   3. rjags:::.quiet.messages(TRUE)
  
  ── 10. Error: Radial-Egger using weak prior method (@test-mr_radialegger_rjags.R
  WEIRD RETURN VALUE: 0x1
  Backtrace:
   1. mrbayes::mr_radialegger_rjags(mrdat, prior = "weak", seed = 123)
   2. rjags::jags.model(...)
   3. rjags:::.quiet.messages(TRUE)
  
  ── 11. Error: Radial-Egger using pseudo prior method (@test-mr_radialegger_rjags
  WEIRD RETURN VALUE: 0x1
  Backtrace:
   1. mrbayes::mr_radialegger_rjags(mrdat, prior = "pseudo", seed = 123)
   2. rjags::jags.model(...)
   3. rjags:::.quiet.messages(TRUE)
  
  ── 12. Error: Radial-Egger using betaprior and sigmaprior method (@test-mr_radia
  WEIRD RETURN VALUE: 0x1
  Backtrace:
   1. mrbayes::mr_radialegger_rjags(...)
   2. rjags::jags.model(...)
   3. rjags:::.quiet.messages(TRUE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 3 | SKIPPED: 2 | WARNINGS: 0 | FAILED: 12 ]
  1. Error: MR-Egger using default prior method (@test-mr_egger_rjags.R#16) 
  2. Error: MR-Egger using weak prior method (@test-mr_egger_rjags.R#34) 
  3. Error: MR-Egger using pseudo prior method (@test-mr_egger_rjags.R#53) 
  4. Error: MR-Egger using betaprior and sigmaprior method (@test-mr_egger_rjags.R#91) 
  5. Error: IVW using default prior method (@test-mr_ivw_rjags.R#20) 
  6. Error: IVW using weak prior method (@test-mr_ivw_rjags.R#36) 
  7. Error: IVW using pseudo prior method (@test-mr_ivw_rjags.R#51) 
  8. Error: IVW using beta prior method (@test-mr_ivw_rjags.R#67) 
  9. Error: Radial-Egger using default prior method (@test-mr_radialegger_rjags.R#15) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted