tests/testthat/test_TaskClust.R

test_that("autoplot.TaskClust", {
  requireNamespace("mlr3cluster")
  task = mlr3::tsk("usarrests")

  p = autoplot(task, type = "pairs")
  expect_s3_class(p, "ggmatrix")
  vdiffr::expect_doppelganger("taskclust_pairs", p)
})
mlr-org/mlr3viz documentation built on Oct. 19, 2021, 1:10 p.m.