tests/testthat/test-tibble.R

skip_on_os(c("mac", "solaris"))
skip_if_not_installed("tibble")
test_that("ggeffect, tibble", {
  mtcars_tbl <- tibble::as_tibble(mtcars)
  fm2 <- lm(mpg ~ cyl + disp, mtcars_tbl)
  out <- ggpredict(fm2, terms = "cyl")
  expect_s3_class(out, "data.frame")
})

Try the ggeffects package in your browser

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

ggeffects documentation built on Sept. 12, 2024, 7:41 a.m.