tests/testthat/test-format_factor.R

test_that("output test", {
  expect_snapshot({
    pillar(factor(c(letters[1:5], NA)))
    pillar(ordered(c(letters[1:5], NA)))
    pillar(factor("a\nb"))
  })
})

Try the pillar package in your browser

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

pillar documentation built on July 29, 2021, 9:06 a.m.