tests/testthat/test_plot_interactive_what_if.R

context("Check what_if() function")

library("ggiraph")

wi_rf_all <- what_if(explainer_rf, observation = new_apartment)

test_that("output",{
  expect_is(plot_interactive(wi_rf_all), "ggiraph")
  expect_is(plot_interactive(wi_rf_all, split = "variables", color = "variable"), "ggiraph")
})

Try the ceterisParibus package in your browser

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

ceterisParibus documentation built on March 31, 2020, 5:22 p.m.