tests/testthat/test-pkg-ivreg.R

test_that("Issue #530 from the `modelsummary` repo", {
  skip_if_not_installed("ivreg")
  skip_if_not(packageVersion("insight") >= "0.19.1.3") # formatting of results
  # for ivreg diagnostics
  data(mtcars)
  iv_model <- suppressMessages(ivreg::ivreg(mpg ~ qsec + cyl + drat | disp | wt, data = mtcars))
  out <- expect_silent(model_performance(iv_model))
  expect_snapshot(out)
})

Try the performance package in your browser

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

performance documentation built on Nov. 2, 2023, 5:48 p.m.