File: test-visualisation_recipe.R

package info (click to toggle)
r-cran-parameters 0.24.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,852 kB
  • sloc: sh: 16; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 272 bytes parent folder | download
1
2
3
4
5
6
7
8
test_that("vis_recipe.cluster_analysis", {
  data(iris)
  result <- cluster_analysis(iris[, 1:4], n = 4)
  out <- visualisation_recipe(result)
  expect_named(out, c("l1", "l2", "l3"))
  expect_s3_class(out, "visualisation_recipe")
  expect_snapshot(print(out))
})