tests/testthat/test-compare.R

test_that("compare() returns a ggplot", {
  set.seed(1)
  p = compare(runif(10), runif(10))
  expect_s3_class(p, "ggplot")
  expect_no_error(ggplot2::ggplot_build(p))
})

Try the gosset package in your browser

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

gosset documentation built on Nov. 23, 2026, 9:07 a.m.