tests/testthat/test-plot.R

test_that("plot.pmrm_fit() proportional decline", {
  out <- plot(fit_decline_proportional(), show_predictions = TRUE, facet = TRUE)
  expect_s3_class(out, "ggplot")
})

test_that("plot.pmrm_fit() non-proportional slowing", {
  out <- plot(fit_slowing_nonproportional(), facet = FALSE)
  expect_s3_class(out, "ggplot")
})

Try the pmrm package in your browser

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

pmrm documentation built on March 12, 2026, 5:07 p.m.