tests/testthat/test-plot.R

test_that("plot fitdists deprecated to autoplot", {
  fits <- ssd_fit_dists(ssddata::ccme_boron, dists = "lnorm")
  
  lifecycle::expect_deprecated(plot(fits))
})

test_that("plot fitdists give ggplot2 object", {
  fits <- ssd_fit_dists(ssddata::ccme_boron)
  withr::local_options(lifecycle_verbosity = "quiet")
  expect_snapshot_plot(plot(fits), "plot")
})

Try the ssdtools package in your browser

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

ssdtools documentation built on Sept. 8, 2023, 5:56 p.m.