Running ‘testthat.R’ [9s/13s]
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:5): 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:5): 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:5): 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:5): 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:5): 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:5): 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:5): 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:5): 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:1): (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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(...)
   8.         └─base::do.call(learner, lpars)
  ── Error (test_SETRED.R:135:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 gen.learner(labeled, ynew[labeled])
   7.       └─ssc:::trainModel(...)
   8.         └─base::do.call(learner, lpars)
  ── Error (test_SelfTraining.R:130:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(...)
   8.         └─base::do.call(learner, lpars)
  ── Error (test_TriTrainingG.R:4:1): (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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 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:5): 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 gen.learner(indexes, y[indexes])
   7.       └─ssc:::trainModel(...)
   8.         └─base::do.call(learner, lpars)
  ── Error (test_coBC.R:136:5): 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 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:5): 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 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:5): 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 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:5): 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 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:1): (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