tests/testthat/test-Hmisc.R

# library(testthat)
# library(dendextend)


context("as.dendrogram.varclus")


test_that("as.dendrogram.varclus works", {
  
   object <- list()
   hc <- hclust(dist(mtcars))
   object$hclust <- hc
   
   expect_identical(
      as.dendrogram.varclus(object),
      as.dendrogram(hc)
   )
       
})

Try the dendextend package in your browser

Any scripts or data that you put into this service are public.

dendextend documentation built on April 4, 2025, 4:40 a.m.