tests/testthat/test-plotSLICE.R

test_that("plotSLICE errors", {
  empty_tibble <- tibble::tribble(
    ~name, ~value
  )
  expect_error(plotSLICE(empty_tibble))
  false_example1 <- relatedness_example %>% dplyr::rename(bob = pair)
  expect_error(plotSLICE(false_example1))
  expect_error(plotSLICE(relatedness_example))
  expect_error(plotSLICE(relatedness_example, row = 100))
  expect_error(plotSLICE(relatedness_example, row = 1, labels = "a"))
})

Try the BREADR package in your browser

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

BREADR documentation built on April 15, 2025, 1:22 a.m.