Running ‘testthat.R’ [17s/21s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(BAS)
  > 
  > test_check("BAS")
  Allocating Space for 16 Models AMCMC
  AMCMC
  using MCMC sampling - initialize
  Now start AMCMC with 11 nUnique models out of 16 at it 200
  Allocating Space for 16 Models AMCMC
  AMCMC
  using MCMC sampling - initialize
  Now start AMCMC with 11 nUnique models out of 16 at it 200
  
   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  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 266 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-bas-lm-lowrank.R:49:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bas-glm.R:601:3'): gamma regression coef ───────────────────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'faraway'
  Backtrace:
      ▆
   1. └─utils::data(wafer, package = "faraway") at test-bas-glm.R:601:3
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-family.R:23:3'): family links ──────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'faraway'
  Backtrace:
      ▆
   1. └─utils::data(wafer, package = "faraway") at test-family.R:23:3
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 266 ]
  Error: Test failures
  Execution halted