tests/testthat/test_calculate_covariate_drift.R

context("Check calculate_covariate_drift() function")

test_that("Type of data in the explainer",{
  d <- calculate_covariate_drift(apartments, apartments_test)
  expect_true("covariate_drift" %in% class(d))
  expect_true(all(dim(d) == c(6,2)))
})

Try the drifter package in your browser

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

drifter documentation built on May 31, 2019, 5:04 p.m.