tests/testthat/test-print_importance_plot.R

context("test-print_importance_plot")

test_that("printing importance works", {
  gtest <- lm(mpg ~ cyl*wt*hp, data = mtcars)
  gtest0 <- lm(mpg ~ 1, data = mtcars)
  imp <- importance(gtest, gtest0)
  expect_output(print(imp), regexp = "Importance")
})
bertcarnell/tornado documentation built on Aug. 6, 2024, 10:17 p.m.