Running ‘testthat.R’ [16s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pema)
  > 
  > test_check("pema")
  
  SAMPLING FOR MODEL 'lasso_MA' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 6.6e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.66 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: No variance estimation is
  Chain 1:          performed for num_warmup < 20
  Chain 1: 
  Chain 1: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 1: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 1: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 1: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 1: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 1: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 1: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 1: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 1: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 1: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.011 seconds (Warm-up)
  Chain 1:                0 seconds (Sampling)
  Chain 1:                0.011 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'lasso_MA' NOW (CHAIN 2).
  Chain 2: 
  Chain 2: Gradient evaluation took 3.6e-05 seconds
  Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 0.36 seconds.
  Chain 2: Adjust your expectations accordingly!
  Chain 2: 
  Chain 2: 
  Chain 2: WARNING: No variance estimation is
  Chain 2:          performed for num_warmup < 20
  Chain 2: 
  Chain 2: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 2: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 2: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 2: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 2: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 2: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 2: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 2: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 2: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 2: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 2: 
  Chain 2:  Elapsed Time: 0.013 seconds (Warm-up)
  Chain 2:                0 seconds (Sampling)
  Chain 2:                0.013 seconds (Total)
  Chain 2: 
  
  SAMPLING FOR MODEL 'lasso_MA' NOW (CHAIN 3).
  Chain 3: 
  Chain 3: Gradient evaluation took 3.5e-05 seconds
  Chain 3: 1000 transitions using 10 leapfrog steps per transition would take 0.35 seconds.
  Chain 3: Adjust your expectations accordingly!
  Chain 3: 
  Chain 3: 
  Chain 3: WARNING: No variance estimation is
  Chain 3:          performed for num_warmup < 20
  Chain 3: 
  Chain 3: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 3: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 3: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 3: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 3: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 3: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 3: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 3: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 3: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 3: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 3: 
  Chain 3:  Elapsed Time: 0.013 seconds (Warm-up)
  Chain 3:                0 seconds (Sampling)
  Chain 3:                0.013 seconds (Total)
  Chain 3: 
  
  SAMPLING FOR MODEL 'lasso_MA' NOW (CHAIN 4).
  Chain 4: 
  Chain 4: Gradient evaluation took 3.5e-05 seconds
  Chain 4: 1000 transitions using 10 leapfrog steps per transition would take 0.35 seconds.
  Chain 4: Adjust your expectations accordingly!
  Chain 4: 
  Chain 4: 
  Chain 4: WARNING: No variance estimation is
  Chain 4:          performed for num_warmup < 20
  Chain 4: 
  Chain 4: Iteration: 1 / 10 [ 10%]  (Warmup)
  Chain 4: Iteration: 2 / 10 [ 20%]  (Warmup)
  Chain 4: Iteration: 3 / 10 [ 30%]  (Warmup)
  Chain 4: Iteration: 4 / 10 [ 40%]  (Warmup)
  Chain 4: Iteration: 5 / 10 [ 50%]  (Warmup)
  Chain 4: Iteration: 6 / 10 [ 60%]  (Sampling)
  Chain 4: Iteration: 7 / 10 [ 70%]  (Sampling)
  Chain 4: Iteration: 8 / 10 [ 80%]  (Sampling)
  Chain 4: Iteration: 9 / 10 [ 90%]  (Sampling)
  Chain 4: Iteration: 10 / 10 [100%]  (Sampling)
  Chain 4: 
  Chain 4:  Elapsed Time: 0.016 seconds (Warm-up)
  Chain 4:                0 seconds (Sampling)
  Chain 4:                0.016 seconds (Total)
  Chain 4: 
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 19 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-multiple_imp.R:8:1'): (code run outside of `test_that()`) ──────
  Error: package or namespace load failed for 'mice' in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
   there is no package called 'pan'
  Backtrace:
      ▆
   1. └─base::library(mice) at test-multiple_imp.R:8:1
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 19 ]
  Error: Test failures
  Execution halted