tests/testthat/test_tReem.R

library(PCRedux)

context("tReem")

test_that("tReem performs the shape based clustering", {

  res_foo <- try(tReem("foo"), silent=TRUE)
  res_bar <- try(tReem("bar", cor=FALSE), silent=TRUE)

  expect_equal(class(res_foo), "try-error")
  expect_equal(class(res_bar), "try-error")
})

Try the PCRedux package in your browser

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

PCRedux documentation built on May 11, 2022, 5:18 p.m.