Running ‘testthat.R’ [16s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(MADPop)
  Loading required package: rstan
  Loading required package: ggplot2
  Loading required package: StanHeaders
  rstan (Version 2.18.2, GitRev: 2e1f913d3ca3)
  For execution on a local, multicore CPU with excess RAM we recommend calling
  options(mc.cores = parallel::detectCores()).
  To avoid recompilation of unchanged Stan programs, we recommend calling
  rstan_options(auto_write = TRUE)
  > 
  > test_check("MADPop")
  
  SAMPLING FOR MODEL 'DirichletMultinomial' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000471 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 4.71 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 10 / 100 [ 10%]  (Warmup)
  Chain 1: Iteration: 20 / 100 [ 20%]  (Warmup)
  Chain 1: Iteration: 30 / 100 [ 30%]  (Warmup)
  Chain 1: Iteration: 40 / 100 [ 40%]  (Warmup)
  Chain 1: Iteration: 50 / 100 [ 50%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 60 / 100 [ 60%]  (Sampling)
  Chain 1: Iteration: 70 / 100 [ 70%]  (Sampling)
  Chain 1: Iteration: 80 / 100 [ 80%]  (Sampling)
  Chain 1: Iteration: 90 / 100 [ 90%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 11.9386 seconds (Warm-up)
  Chain 1:                0.458293 seconds (Sampling)
  Chain 1:                12.3969 seconds (Total)
  Chain 1: 
  ── 1. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ──────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 240 - 0 == 240
  
  ── 2. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ──────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 240 - 0 == 240
  
  ── 3. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ──────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 240 - 0 == 240
  
  ── 4. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ──────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 96 - 0 == 96
  
  ── 5. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ──────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 96 - 0 == 96
  
  ── 6. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ──────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 240 - 0 == 240
  
  ── 7. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ──────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 96 - 0 == 96
  
  ── 8. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ──────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 64 - 0 == 64
  
  ── 9. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ──────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 208 - 0 == 208
  
  ── 10. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 240 - 0 == 240
  
  ── 11. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 240 - 0 == 240
  
  ── 12. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 240 - 0 == 240
  
  ── 13. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 144 - 0 == 144
  
  ── 14. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 144 - 0 == 144
  
  ── 15. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 240 - 0 == 240
  
  ── 16. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 240 - 0 == 240
  
  ── 17. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 240 - 0 == 240
  
  ── 18. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 208 - 0 == 208
  
  ── 19. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 32 - 0 == 32
  
  ── 20. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 96 - 0 == 96
  
  ── 21. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 96 - 0 == 96
  
  ── 22. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 96 - 0 == 96
  
  ── 23. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 144 - 0 == 144
  
  ── 24. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 144 - 0 == 144
  
  ── 25. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 144 - 0 == 144
  
  ── 26. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 96 - 0 == 96
  
  ── 27. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 144 - 0 == 144
  
  ── 28. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 240 - 0 == 240
  
  ── 29. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36)  ─────────────
  max_diff[ii] not equal to 0.
  1/1 mismatches
  [1] 240 - 0 == 240
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 23 SKIPPED: 0 FAILED: 29
  1. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36) 
  2. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36) 
  3. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36) 
  4. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36) 
  5. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36) 
  6. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36) 
  7. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36) 
  8. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36) 
  9. Failure: logpost_R == logpost_Stan (@test-stanmodels.R#36) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted