Running 'testthat.R' [224s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(basket)
  > 
  > test_check("basket")
  
  -- The MEM Model Call ----------------------------------------------------------
  
  mem_exact(responses = vemu_wide1$responders, size = vemu_wide1$evaluable, 
      name = vemu_wide1$baskets, p0 = 0.25)
  
  -- The Basket Summary ----------------------------------------------------------
  
  The Null Response Rates (alternative is greater):
                 NSCLC CRC (vemu) CRC (vemu+cetu)
  Null           0.250      0.250            0.25
  Posterior Prob 0.951      0.002            0.00
  
  Posterior Mean and Median Response Rates:
         NSCLC CRC (vemu) CRC (vemu+cetu)
  Mean   0.425      0.041           0.042
  Median 0.422      0.032           0.033
  
  Highest Posterior Density Interval with Coverage Probability 0.95:
        NSCLC CRC (vemu) CRC (vemu+cetu)
  lower 0.208      0.000           0.000
  upper 0.628      0.105           0.109
  
  Posterior Effective Sample Size:
    [,1]   [,2]   [,3]
   19.93 55.647 50.867
  
  -- The Cluster Summary ---------------------------------------------------------
  
  Cluster 1        
   "NSCLC"
  Cluster 2                               
   "CRC (vemu)" "CRC (vemu+cetu)"
  
  The Null Response Rates (alternative is greater):
                 Cluster 1 Cluster 2
  Null               0.250     0.250
  Posterior Prob     0.951     0.001
  
  Posterior Mean and Median Response Rates:
         Cluster 1 Cluster 2
  Mean       0.425     0.041
  Median     0.422     0.033
  
  Highest Posterior Density Interval with Coverage Probability 0.95:
              Cluster 1 Cluster 2
  Lower Bound     0.214     0.000
  Upper Bound     0.631     0.107
  
  Posterior Effective Sample Size:
   Cluster 1 Cluster 2
       20.28     52.91
  
  
  The Null Response Rates (alternative is greater):
                 NSCLC CRC (vemu) CRC (vemu+cetu)
  Null           0.250      0.250            0.25
  Posterior Prob 0.951      0.002            0.00
  
  Posterior Mean and Median Response Rates:
         NSCLC CRC (vemu) CRC (vemu+cetu)
  Mean   0.425      0.041           0.042
  Median 0.422      0.032           0.033
  
  Highest Posterior Density Interval with Coverage Probability 0.95:
        NSCLC CRC (vemu) CRC (vemu+cetu)
  lower 0.208      0.000           0.000
  upper 0.628      0.105           0.109
  
  Posterior Effective Sample Size:
    [,1]   [,2]   [,3]
   19.93 55.647 50.867
  
  
  Cluster 1        
   "NSCLC"
  Cluster 2                               
   "CRC (vemu)" "CRC (vemu+cetu)"
  
  The Null Response Rates (alternative is greater):
                 Cluster 1 Cluster 2
  Null               0.250     0.250
  Posterior Prob     0.951     0.001
  
  Posterior Mean and Median Response Rates:
         Cluster 1 Cluster 2
  Mean       0.425     0.041
  Median     0.422     0.033
  
  Highest Posterior Density Interval with Coverage Probability 0.95:
              Cluster 1 Cluster 2
  Lower Bound     0.214     0.000
  Upper Bound     0.631     0.107
  
  Posterior Effective Sample Size:
   Cluster 1 Cluster 2
       20.28     52.91
  
  -- 1. Failure: (unknown) (@test-mcmc.r#41)  ------------------------------------
  mcmc_res1$basket$PEP not equivalent to mcmc_ref2$PEP.
  4/9 mismatches (average diff: 0.0679)
  [3] 0.98 - 0.901 == 0.0791
  [6] 0.97 - 0.913 == 0.0567
  [7] 0.98 - 0.901 == 0.0791
  [8] 0.97 - 0.913 == 0.0567
  
  -- 2. Failure: (unknown) (@test-mcmc.r#45)  ------------------------------------
  mcmc_res1$basket$ESS not equivalent to mcmc_ref2$ESS.
  3/3 mismatches (average diff: 2.09)
  [1] 39.8 - 37.5 == 2.330
  [2] 38.3 - 37.9 == 0.435
  [3] 38.4 - 34.9 == 3.494
  
  == testthat results  ===========================================================
  [ OK: 49 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Failure: (unknown) (@test-mcmc.r#41) 
  2. Failure: (unknown) (@test-mcmc.r#45) 
  
  Error: testthat unit tests failed
  Execution halted