dwww Home | Show directory contents | Find package

test_that("collide() checks the input data", {
  data <- data.frame(x = 1:4, group = 1L)
  expect_snapshot_error(collide(data, width = 1, 'test', pos_stack))
  data$y <- 1
  expect_snapshot_warning(collide(data, width = 2, 'test', pos_stack))
})

Generated by dwww version 1.15 on Wed May 22 19:16:41 CEST 2024.