Running ‘testthat.R’ [28s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(shapr)
  > 
  > test_check("shapr")
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-a-shapley.R:6:1): (code run outside of `test_that()`) ─────────
  non-uniform 'Rounding' sampler used
  Backtrace:
   1. base::RNGversion(vstr = "3.5.0") test-a-shapley.R:6:0
   2. base::RNGkind("Mersenne-Twister", "Inversion", "Rounding")
  ── Warning (test-explanation.R:7:1): (code run outside of `test_that()`) ───────
  non-uniform 'Rounding' sampler used
  Backtrace:
   1. base::RNGversion(vstr = "3.5.0") test-explanation.R:7:0
   2. base::RNGkind("Mersenne-Twister", "Inversion", "Rounding")
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-a-shapley.R:44:3): Testing data input to shapr in shapley.R ─────
  Error: there is no package called 'xgboost'
  Backtrace:
      █
   1. └─xgboost::xgboost test-a-shapley.R:44:2
   2.   └─base::getExportedValue(pkg, name)
   3.     └─base::asNamespace(ns)
   4.       └─base::getNamespace(ns)
   5.         └─base::loadNamespace(name)
   6.           └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.             └─base:::withOneRestart(expr, restarts[[1L]])
   8.               └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-explanation.R:151:3): Testing data input to explain in explanation.R ──
  Error: there is no package called 'xgboost'
  Backtrace:
      █
   1. └─xgboost::xgboost test-explanation.R:151:2
   2.   └─base::getExportedValue(pkg, name)
   3.     └─base::asNamespace(ns)
   4.       └─base::getNamespace(ns)
   5.         └─base::loadNamespace(name)
   6.           └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.             └─base:::withOneRestart(expr, restarts[[1L]])
   8.               └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-models.R:19:3): Test predict_model (regression) ─────────────────
  Error: there is no package called 'xgboost'
  Backtrace:
      █
   1. └─xgboost::xgboost test-models.R:19:2
   2.   └─base::getExportedValue(pkg, name)
   3.     └─base::asNamespace(ns)
   4.       └─base::getNamespace(ns)
   5.         └─base::loadNamespace(name)
   6.           └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.             └─base:::withOneRestart(expr, restarts[[1L]])
   8.               └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-models.R:86:3): Test predict_model (binary classification) ──────
  Error: there is no package called 'xgboost'
  Backtrace:
      █
   1. └─xgboost::xgboost test-models.R:86:2
   2.   └─base::getExportedValue(pkg, name)
   3.     └─base::asNamespace(ns)
   4.       └─base::getNamespace(ns)
   5.         └─base::loadNamespace(name)
   6.           └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.             └─base:::withOneRestart(expr, restarts[[1L]])
   8.               └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-models.R:195:3): Test predict_model (multi-classification) ──────
  Error: there is no package called 'xgboost'
  Backtrace:
      █
   1. └─xgboost::xgboost test-models.R:195:2
   2.   └─base::getExportedValue(pkg, name)
   3.     └─base::asNamespace(ns)
   4.       └─base::getNamespace(ns)
   5.         └─base::loadNamespace(name)
   6.           └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.             └─base:::withOneRestart(expr, restarts[[1L]])
   8.               └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-models.R:255:3): Test features (regression) ─────────────────────
  Error: there is no package called 'xgboost'
  Backtrace:
      █
   1. └─xgboost::xgboost test-models.R:255:2
   2.   └─base::getExportedValue(pkg, name)
   3.     └─base::asNamespace(ns)
   4.       └─base::getNamespace(ns)
   5.         └─base::loadNamespace(name)
   6.           └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.             └─base:::withOneRestart(expr, restarts[[1L]])
   8.               └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-models.R:284:3): Test features (binary classification) ──────────
  Error: there is no package called 'xgboost'
  Backtrace:
      █
   1. └─xgboost::xgboost test-models.R:284:2
   2.   └─base::getExportedValue(pkg, name)
   3.     └─base::asNamespace(ns)
   4.       └─base::getNamespace(ns)
   5.         └─base::loadNamespace(name)
   6.           └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.             └─base:::withOneRestart(expr, restarts[[1L]])
   8.               └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-models.R:319:3): Test missing colnames ──────────────────────────
  Error: there is no package called 'xgboost'
  Backtrace:
      █
   1. └─xgboost::xgboost test-models.R:319:2
   2.   └─base::getExportedValue(pkg, name)
   3.     └─base::asNamespace(ns)
   4.       └─base::getNamespace(ns)
   5.         └─base::loadNamespace(name)
   6.           └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.             └─base:::withOneRestart(expr, restarts[[1L]])
   8.               └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 8 | WARN 2 | SKIP 0 | PASS 383 ]
  Error: Test failures
  Execution halted