tests/testthat/test-discovr.R

skip_if_not_installed("discovr")

test_that("discovr-book-examples, chap 8.8", {
  data(album_sales, package = "discovr")
  set.seed(123)
  out <- describe_distribution(
    album_sales,
    range = FALSE,
    ci = 0.95,
    iterations = 500
  )
  expect_snapshot(print(out, table_width = Inf))
})

Try the datawizard package in your browser

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

datawizard documentation built on Sept. 10, 2026, 5:07 p.m.