tests/testthat/test-regress-output.R

test_that("output from regress is as expected", {
  expect_snapshot(ols_regress(mpg ~ disp + hp + wt, data = mtcars))
  expect_snapshot(ols_regress(lm(mpg ~ disp + hp + wt, data = mtcars)))
})

Try the olsrr package in your browser

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

olsrr documentation built on May 29, 2024, 12:35 p.m.