Running ‘testthat.R’ [48s/129s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(checkmate)
  > library(iml)
  > 
  > test_check("iml")
  ── 1. Error: FeatureImp works for single output (@test-FeatureImp.R#9)  ────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: FeatureImp$new(predictor1, loss = "mse") at testthat/test-FeatureImp.R:9
  2: .subset2(public_bind_env, "initialize")(...)
  3: self$run()
  4: data.frame(private$aggregate())
  5: private$aggregate()
  6: result[, list(original.error = self$original.error, permutation.error = self$loss(actual, 
         predicted)), by = feature]
  7: `[.data.table`(result, , list(original.error = self$original.error, permutation.error = self$loss(actual, 
         predicted)), by = feature)
  
  ── 2. Error: FeatureImp works for single output and function as loss (@test-Feat
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: FeatureImp$new(predictor1, loss = Metrics::mse) at testthat/test-FeatureImp.R:62
  2: .subset2(public_bind_env, "initialize")(...)
  3: self$run()
  4: data.frame(private$aggregate())
  5: private$aggregate()
  6: result[, list(original.error = self$original.error, permutation.error = self$loss(actual, 
         predicted)), by = feature]
  7: `[.data.table`(result, , list(original.error = self$original.error, permutation.error = self$loss(actual, 
         predicted)), by = feature)
  
  ── 3. Error: FeatureImp works for multiple output (@test-FeatureImp.R#76)  ─────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: FeatureImp$new(predictor2, loss = "ce") at testthat/test-FeatureImp.R:76
  2: .subset2(public_bind_env, "initialize")(...)
  3: self$run()
  4: data.frame(private$aggregate())
  5: private$aggregate()
  6: result[, list(original.error = self$original.error, permutation.error = self$loss(actual, 
         predicted)), by = feature]
  7: `[.data.table`(result, , list(original.error = self$original.error, permutation.error = self$loss(actual, 
         predicted)), by = feature)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 232 SKIPPED: 0 FAILED: 3
  1. Error: FeatureImp works for single output (@test-FeatureImp.R#9) 
  2. Error: FeatureImp works for single output and function as loss (@test-FeatureImp.R#62) 
  3. Error: FeatureImp works for multiple output (@test-FeatureImp.R#76) 
  
  Error: testthat unit tests failed
  Execution halted