tests/testthat/test-format_lubridate.R

test_that("can output durations", {
  skip_if_not_installed("lubridate")
  expect_snapshot({
    pillar(lubridate::as.duration(1:3))
  })
})

Try the pillar package in your browser

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

pillar documentation built on March 31, 2023, 10:19 p.m.