Running ‘testthat.R’ [7s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DataExplorer)
  > 
  > test_check("DataExplorer")
  ── 1. Error: test non-data.table objects (@test-group-category.r#8)  ───────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: expect_lt(sum(group_category(iris, "Species", 0.2, "Sepal.Length")[["cnt"]]), sum(iris$Sepal.Length)) at testthat/test-group-category.r:8
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: group_category(iris, "Species", 0.2, "Sepal.Length")
  5: data[, list(cnt = sum(get(measure))), by = feature]
  6: `[.data.table`(data, , list(cnt = sum(get(measure))), by = feature)
  
  ── 2. Error: test data.table objects without update (@test-group-category.r#15) 
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: expect_lt(sum(group_category(dt, "Species", 0.2, "Sepal.Length")[["cnt"]]), sum(dt$Sepal.Length)) at testthat/test-group-category.r:15
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: group_category(dt, "Species", 0.2, "Sepal.Length")
  5: data[, list(cnt = sum(get(measure))), by = feature]
  6: `[.data.table`(data, , list(cnt = sum(get(measure))), by = feature)
  
  ── 3. Error: test update with measure (@test-group-category.r#30)  ─────────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: group_category(dt, "cut", 0.2, measure = "price", update = TRUE) at testthat/test-group-category.r:30
  2: data[, list(cnt = sum(get(measure))), by = feature]
  3: `[.data.table`(data, , list(cnt = sum(get(measure))), by = feature)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 44 SKIPPED: 4 FAILED: 3
  1. Error: test non-data.table objects (@test-group-category.r#8) 
  2. Error: test data.table objects without update (@test-group-category.r#15) 
  3. Error: test update with measure (@test-group-category.r#30) 
  
  Error: testthat unit tests failed
  Execution halted