Running ‘testthat.R’ [9s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ssc)
  > 
  > test_check("ssc")
  [ FAIL 49 | WARN 5 | SKIP 0 | PASS 89 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_Democratic.R:9'): democratic works ─────────────────────────────
  Error in `as.list2(learners.pars, length(learners))`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::democratic(...) at test_Democratic.R:9:4
   2.   └─ssc:::as.list2(learners.pars, length(learners))
  ── Error ('test_Democratic.R:56'): the learners information is complete ────────
  Error in `as.list2(learners.pars, length(learners))`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_Democratic.R:56:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::democratic(...)
   5.   └─ssc:::as.list2(learners.pars, length(learners))
  ── Error ('test_Democratic.R:65'): prediction not fail when x is a vector ──────
  Error in `as.list2(learners.pars, length(learners))`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::democratic(...) at test_Democratic.R:65:4
   2.   └─ssc:::as.list2(learners.pars, length(learners))
  ── Error ('test_Democratic.R:76'): the model structure is correct ──────────────
  Error in `as.list2(learners.pars, length(learners))`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::democratic(...) at test_Democratic.R:76:4
   2.   └─ssc:::as.list2(learners.pars, length(learners))
  ── Error ('test_Democratic.R:89'): x can be a data.frame ───────────────────────
  Error in `as.list2(learners.pars, length(learners))`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_Democratic.R:89:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::democratic(...)
   5.   └─ssc:::as.list2(learners.pars, length(learners))
  ── Error ('test_Democratic.R:100'): y can be a vector ──────────────────────────
  Error in `as.list2(learners.pars, length(learners))`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_Democratic.R:100:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::democratic(...)
   5.   └─ssc:::as.list2(learners.pars, length(learners))
  ── Error ('test_Democratic.R:111'): x.inst can be coerced to logical ───────────
  Error in `as.list2(learners.pars, length(learners))`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_Democratic.R:111:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::democratic(...)
   5.   └─ssc:::as.list2(learners.pars, length(learners))
  ── Error ('test_Democratic.R:165'): x is a square matrix when x.inst is FALSE ──
  Error in `as.list2(learners.pars, length(learners))`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_Democratic.R:165:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::democratic(...)
   5.   └─ssc:::as.list2(learners.pars, length(learners))
  ── Error ('test_DemocraticG.R:5'): (code run outside of `test_that()`) ─────────
  <packageNotFoundError/error/condition>
  Error in `library(caret)`: there is no package called 'caret'
  Backtrace:
      ▆
   1. └─base::library(caret) at test_DemocraticG.R:5:0
  ── Error ('test_SETRED.R:9'): setred works ─────────────────────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::setred(x = wine$xtrain, y = wine$ytrain, learner = knn3) at test_SETRED.R:9:4
   2.   └─ssc::setredG(...)
   3.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   4.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   5.         └─base::do.call(learner, lpars)
  ── Error ('test_SETRED.R:28'): prediction not fail when x is a vector ──────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::setred(x = wine$xtrain, y = wine$ytrain, learner = knn3) at test_SETRED.R:28:4
   2.   └─ssc::setredG(...)
   3.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   4.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   5.         └─base::do.call(learner, lpars)
  ── Error ('test_SETRED.R:38'): the model structure is correct ──────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::setred(x = wine$xtrain, y = wine$ytrain, learner = knn3) at test_SETRED.R:38:4
   2.   └─ssc::setredG(...)
   3.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   4.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   5.         └─base::do.call(learner, lpars)
  ── Error ('test_SETRED.R:49'): x can be a data.frame ───────────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SETRED.R:49:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::setred(...)
   5.   └─ssc::setredG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SETRED.R:59'): y can be a vector ───────────────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SETRED.R:59:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::setred(x = wine$xtrain, y = as.vector(wine$ytrain), learner = knn3)
   5.   └─ssc::setredG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SETRED.R:69'): x.inst can be coerced to logical ────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SETRED.R:69:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::setred(...)
   5.   └─ssc::setredG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SETRED.R:119'): x is a square matrix when x.inst is FALSE ──────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SETRED.R:119:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::setred(...)
   5.   └─ssc::setredG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(...)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SETRED.R:135'): max.iter is a value greather than 0 ────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SETRED.R:135:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::setred(...)
   5.   └─ssc::setredG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SETRED.R:151'): perc.full is a value between 0 and 1 ───────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SETRED.R:151:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::setred(...)
   5.   └─ssc::setredG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SETRED.R:167'): theta is a value between 0 and 1 ───────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SETRED.R:167:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::setred(...)
   5.   └─ssc::setredG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SelfTraining.R:9'): selfTraining works ─────────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::selfTraining(x = wine$xtrain, y = wine$ytrain, learner = knn3) at test_SelfTraining.R:9:4
   2.   └─ssc::selfTrainingG(...)
   3.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   4.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   5.         └─base::do.call(learner, lpars)
  ── Error ('test_SelfTraining.R:29'): prediction not fail when x is a vector ────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::selfTraining(x = wine$xtrain, y = wine$ytrain, learner = knn3) at test_SelfTraining.R:29:4
   2.   └─ssc::selfTrainingG(...)
   3.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   4.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   5.         └─base::do.call(learner, lpars)
  ── Error ('test_SelfTraining.R:39'): the model structure is correct ────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::selfTraining(x = wine$xtrain, y = wine$ytrain, learner = knn3) at test_SelfTraining.R:39:4
   2.   └─ssc::selfTrainingG(...)
   3.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   4.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   5.         └─base::do.call(learner, lpars)
  ── Error ('test_SelfTraining.R:51'): x can be a data.frame ─────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SelfTraining.R:51:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::selfTraining(x, y = wine$ytrain, learner = knn3)
   5.   └─ssc::selfTrainingG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SelfTraining.R:60'): y can be a vector ─────────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SelfTraining.R:60:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::selfTraining(x = wine$xtrain, y, learner = knn3)
   5.   └─ssc::selfTrainingG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SelfTraining.R:68'): x.inst can be coerced to logical ──────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SelfTraining.R:68:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::selfTraining(...)
   5.   └─ssc::selfTrainingG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SelfTraining.R:114'): x is a square matrix when x.inst is FALSE ──
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SelfTraining.R:114:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::selfTraining(...)
   5.   └─ssc::selfTrainingG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(...)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SelfTraining.R:130'): max.iter is a value greather than 0 ──────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SelfTraining.R:130:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::selfTraining(...)
   5.   └─ssc::selfTrainingG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SelfTraining.R:146'): perc.full is a value between 0 and 1 ─────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SelfTraining.R:146:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::selfTraining(...)
   5.   └─ssc::selfTrainingG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_SelfTraining.R:162'): thr.conf is a value between 0 and 1 ──────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_SelfTraining.R:162:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::selfTraining(...)
   5.   └─ssc::selfTrainingG(...)
   6.     └─ssc (local) gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_TriTraining.R:9'): triTraining works ───────────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::triTraining(x = wine$xtrain, y = wine$ytrain, learner = knn3) at test_TriTraining.R:9:4
   2.   └─ssc::triTrainingG(y, gen.learner2, gen.pred2)
   3.     └─ssc (local) gen.learner(indexes, y[indexes])
   4.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   5.         └─base::do.call(learner, lpars)
  ── Error ('test_TriTraining.R:28'): prediction not fail when x is a vector ─────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::triTraining(x = wine$xtrain, y = wine$ytrain, learner = knn3) at test_TriTraining.R:28:4
   2.   └─ssc::triTrainingG(y, gen.learner2, gen.pred2)
   3.     └─ssc (local) gen.learner(indexes, y[indexes])
   4.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   5.         └─base::do.call(learner, lpars)
  ── Error ('test_TriTraining.R:38'): the model structure is correct ─────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::triTraining(x = wine$xtrain, y = wine$ytrain, learner = knn3) at test_TriTraining.R:38:4
   2.   └─ssc::triTrainingG(y, gen.learner2, gen.pred2)
   3.     └─ssc (local) gen.learner(indexes, y[indexes])
   4.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   5.         └─base::do.call(learner, lpars)
  ── Error ('test_TriTraining.R:50'): x can be a data.frame ──────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_TriTraining.R:50:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::triTraining(...)
   5.   └─ssc::triTrainingG(y, gen.learner2, gen.pred2)
   6.     └─ssc (local) gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_TriTraining.R:60'): y can be a vector ──────────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_TriTraining.R:60:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::triTraining(...)
   5.   └─ssc::triTrainingG(y, gen.learner2, gen.pred2)
   6.     └─ssc (local) gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_TriTraining.R:70'): x.inst can be coerced to logical ───────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_TriTraining.R:70:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::triTraining(...)
   5.   └─ssc::triTrainingG(y, gen.learner2, gen.pred2)
   6.     └─ssc (local) gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_TriTraining.R:120'): x is a square matrix when x.inst is FALSE ──
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_TriTraining.R:120:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::triTraining(...)
   5.   └─ssc::triTrainingG(y, gen.learner1, gen.pred1)
   6.     └─ssc (local) gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(...)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_TriTrainingG.R:4'): (code run outside of `test_that()`) ────────
  <packageNotFoundError/error/condition>
  Error in `library(caret)`: there is no package called 'caret'
  Backtrace:
      ▆
   1. └─base::library(caret) at test_TriTrainingG.R:4:0
  ── Error ('test_coBC.R:9'): coBC works ─────────────────────────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::coBC(x = wine$xtrain, y = wine$ytrain, learner = knn3) at test_coBC.R:9:4
   2.   └─ssc::coBCG(y, gen.learner2, gen.pred2, N, perc.full, u, max.iter)
   3.     └─ssc (local) gen.learner(indexes, y[indexes])
   4.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   5.         └─base::do.call(learner, lpars)
  ── Error ('test_coBC.R:28'): prediction not fail when x is a vector ────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::coBC(x = wine$xtrain, y = wine$ytrain, learner = knn3) at test_coBC.R:28:4
   2.   └─ssc::coBCG(y, gen.learner2, gen.pred2, N, perc.full, u, max.iter)
   3.     └─ssc (local) gen.learner(indexes, y[indexes])
   4.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   5.         └─base::do.call(learner, lpars)
  ── Error ('test_coBC.R:38'): the model structure is correct ────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. └─ssc::coBC(x = wine$xtrain, y = wine$ytrain, learner = knn3) at test_coBC.R:38:4
   2.   └─ssc::coBCG(y, gen.learner2, gen.pred2, N, perc.full, u, max.iter)
   3.     └─ssc (local) gen.learner(indexes, y[indexes])
   4.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   5.         └─base::do.call(learner, lpars)
  ── Error ('test_coBC.R:50'): x can be a data.frame ─────────────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_coBC.R:50:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::coBC(x = as.data.frame(wine$xtrain), y = wine$ytrain, learner = knn3)
   5.   └─ssc::coBCG(y, gen.learner2, gen.pred2, N, perc.full, u, max.iter)
   6.     └─ssc (local) gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_coBC.R:60'): y can be a vector ─────────────────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_coBC.R:60:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::coBC(x = wine$xtrain, y = as.vector(wine$ytrain), learner = knn3)
   5.   └─ssc::coBCG(y, gen.learner2, gen.pred2, N, perc.full, u, max.iter)
   6.     └─ssc (local) gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_coBC.R:70'): x.inst can be coerced to logical ──────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_coBC.R:70:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::coBC(x = wine$xtrain, y = wine$ytrain, x.inst = TRUE, learner = knn3)
   5.   └─ssc::coBCG(y, gen.learner2, gen.pred2, N, perc.full, u, max.iter)
   6.     └─ssc (local) gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_coBC.R:120'): x is a square matrix when x.inst is FALSE ────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_coBC.R:120:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::coBC(x = wine$dtrain, y = wine$ytrain, x.inst = FALSE, learner = knn3)
   5.   └─ssc::coBCG(y, gen.learner1, gen.pred1, N, perc.full, u, max.iter)
   6.     └─ssc (local) gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(...)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_coBC.R:136'): max.iter is a value greather than 0 ──────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_coBC.R:136:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::coBC(x = wine$xtrain, y = wine$ytrain, learner = knn3, max.iter = 80)
   5.   └─ssc::coBCG(y, gen.learner2, gen.pred2, N, perc.full, u, max.iter)
   6.     └─ssc (local) gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_coBC.R:152'): perc.full is a value between 0 and 1 ─────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_coBC.R:152:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::coBC(x = wine$xtrain, y = wine$ytrain, learner = knn3, perc.full = 0.8)
   5.   └─ssc::coBCG(y, gen.learner2, gen.pred2, N, perc.full, u, max.iter)
   6.     └─ssc (local) gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_coBC.R:169'): N is a value greather than 0 ─────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_coBC.R:169:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::coBC(x = wine$xtrain, y = wine$ytrain, learner = knn3, N = 2)
   5.   └─ssc::coBCG(y, gen.learner2, gen.pred2, N, perc.full, u, max.iter)
   6.     └─ssc (local) gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_coBC.R:185'): u is a value greather than 0 ─────────────────────
  Error in `do.call(learner, lpars)`: object 'knn3' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_is(...) at test_coBC.R:185:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ssc::coBC(x = wine$xtrain, y = wine$ytrain, learner = knn3, u = 80)
   5.   └─ssc::coBCG(y, gen.learner2, gen.pred2, N, perc.full, u, max.iter)
   6.     └─ssc (local) gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(x[training.ints, ], cls, learner, learner.pars)
   8.         └─base::do.call(learner, lpars)
  ── Error ('test_coBCG.R:4'): (code run outside of `test_that()`) ───────────────
  <packageNotFoundError/error/condition>
  Error in `library(caret)`: there is no package called 'caret'
  Backtrace:
      ▆
   1. └─base::library(caret) at test_coBCG.R:4:0
  
  [ FAIL 49 | WARN 5 | SKIP 0 | PASS 89 ]
  Error: Test failures
  Execution halted