tests/testthat/test-freq-edge-cases.R

# core formats ------------------------------------------------------------

test_that("works if padding set small and total row is large", {
  library(dplyr)
  options(simplefreqs.inner_table_padding = 1)
  data("storms")
  expect_snapshot(freq(storms, day, plot = F, markdown=F))
  options(simplefreqs.inner_table_padding = NULL)
})
MartinLBarron/freqR documentation built on Aug. 28, 2023, 12:05 p.m.