Running 'testthat.R' [13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ssc)
  > 
  > test_check("ssc")
  == Failed tests ================================================================
  -- Error (test_Democratic.R:9:5): democratic works -----------------------------
  Error: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::democratic(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::democratic(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::democratic(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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()`) ---------
  Error: package or namespace load failed for 'caret' in library.dynam(lib, package, package.lib):
   DLL 'caret' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library(caret) test_DemocraticG.R:5:0
   2.   \-base::tryCatch(...)
   3.     \-base:::tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error (test_SETRED.R:9:5): setred works -------------------------------------
  Error: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::setred(x = wine$xtrain, y = wine$ytrain, learner = knn3) 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: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::setred(x = wine$xtrain, y = wine$ytrain, learner = knn3) 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: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::setred(x = wine$xtrain, y = wine$ytrain, learner = knn3) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::selfTraining(x = wine$xtrain, y = wine$ytrain, learner = knn3) 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: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::selfTraining(x = wine$xtrain, y = wine$ytrain, learner = knn3) 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: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::selfTraining(x = wine$xtrain, y = wine$ytrain, learner = knn3) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::triTraining(x = wine$xtrain, y = wine$ytrain, learner = knn3) 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: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::triTraining(x = wine$xtrain, y = wine$ytrain, learner = knn3) 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: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::triTraining(x = wine$xtrain, y = wine$ytrain, learner = knn3) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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()`) --------
  Error: package or namespace load failed for 'caret' in library.dynam(lib, package, package.lib):
   DLL 'caret' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library(caret) test_TriTrainingG.R:4:0
   2.   \-base::tryCatch(...)
   3.     \-base:::tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  -- Error (test_coBC.R:9:5): coBC works -----------------------------------------
  Error: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::coBC(x = wine$xtrain, y = wine$ytrain, learner = knn3) 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: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::coBC(x = wine$xtrain, y = wine$ytrain, learner = knn3) 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: object 'knn3' not found
  Backtrace:
      x
   1. \-ssc::coBC(x = wine$xtrain, y = wine$ytrain, learner = knn3) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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: object 'knn3' not found
  Backtrace:
      x
   1. +-testthat::expect_is(...) 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()`) ---------------
  Error: package or namespace load failed for 'caret' in library.dynam(lib, package, package.lib):
   DLL 'caret' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. \-base::library(caret) test_coBCG.R:4:0
   2.   \-base::tryCatch(...)
   3.     \-base:::tryCatchList(expr, classes, parentenv, handlers)
   4.       \-base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         \-value[[3L]](cond)
  
  [ FAIL 49 | WARN 0 | SKIP 0 | PASS 89 ]
  Error: Test failures
  Execution halted