Running ‘testthat.R’ [31s/35s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(BAS)
  > 
  > test_check("BAS")
  ── 1. Failure: herdity and BAS (@test-bas-glm.R#418)  ──────────────────────────
  pima_BAS$probne0 not equal to pima_BAS_no$probne0.
  6/7 mismatches (average diff: 0.0696)
  [2] 0.11013 - 0.1136 == -3.47e-03
  [3] 1.00000 - 1.0000 == -2.54e-06
  [4] 0.63062 - 0.8284 == -1.98e-01
  [5] 0.02193 - 0.0220 == -1.03e-04
  [6] 0.00771 - 0.0101 == -2.42e-03
  [7] 0.31878 - 0.1051 ==  2.14e-01
  
  ── 2. Failure: heredity and bas.lm (@test-bas-lm.R#271)  ───────────────────────
  pima_BAS$probne0 not equal to pima_BAS_no$probne0.
  6/7 mismatches (average diff: 0.0858)
  [2] 0.10180 - 0.10419 == -2.39e-03
  [3] 1.00000 - 1.00000 == -9.32e-07
  [4] 0.65447 - 0.90727 == -2.53e-01
  [5] 0.01025 - 0.01015 ==  1.00e-04
  [6] 0.00566 - 0.00784 == -2.19e-03
  [7] 0.33335 - 0.07584 ==  2.58e-01
  
  ── 3. Failure: heredity and bas.lm (@test-bas-lm.R#272)  ───────────────────────
  pima_BAS$n.models not equal to pima_BAS_no$n.models.
  1/1 mismatches
  [1] 26 - 18 == 8
  
  ── 4. Failure: heredity and bas.lm (@test-bas-lm.R#273)  ───────────────────────
  sort(pima_BAS$R2) not equal to sort(pima_BAS_no$R2).
  Lengths differ: 26 is not 18
  
  ── 5. Failure: heredity and bas.lm (@test-bas-lm.R#274)  ───────────────────────
  sort(pima_BAS$R2) not equal to sort(pima_BAS_no$R2).
  Lengths differ: 26 is not 18
  
  ── 6. Failure: heredity and bas.lm (@test-bas-lm.R#275)  ───────────────────────
  sort(pima_BAS$logmarg) not equal to sort(pima_BAS_no$logmarg).
  Lengths differ: 26 is not 18
  
  ── 7. Failure: heredity and bas.lm (@test-bas-lm.R#276)  ───────────────────────
  sort(pima_BAS$postprobs) not equal to sort(pima_BAS_no$postprobs).
  Lengths differ: 26 is not 18
  
  
   Marginal Posterior Summaries of Coefficients: 
  
   Using  BMA 
  
   Based on the top  16 models 
             post mean  post SD   post p(B != 0)
  Intercept  95.42308    0.67885   1.00000      
  X1          1.40116    0.35351   0.97454      
  X2          0.42326    0.38407   0.76017      
  X3         -0.03997    0.33398   0.30660      
  X4         -0.22077    0.36931   0.44354      
  
  Call:
  bas.lm(formula = Y ~ ., data = Hald, prior = "BIC", modelprior = uniform())
  
  
   Marginal Posterior Inclusion Probabilities: 
  Intercept         X1         X2         X3         X4  
     1.0000     0.9856     0.7921     0.4705     0.5220  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 155 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Failure: herdity and BAS (@test-bas-glm.R#418) 
  2. Failure: heredity and bas.lm (@test-bas-lm.R#271) 
  3. Failure: heredity and bas.lm (@test-bas-lm.R#272) 
  4. Failure: heredity and bas.lm (@test-bas-lm.R#273) 
  5. Failure: heredity and bas.lm (@test-bas-lm.R#274) 
  6. Failure: heredity and bas.lm (@test-bas-lm.R#275) 
  7. Failure: heredity and bas.lm (@test-bas-lm.R#276) 
  
  Error: testthat unit tests failed
  Execution halted