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")
})

Try the tornado package in your browser

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

tornado documentation built on May 29, 2024, 2:01 a.m.