Debian Codegraph @

tests/testthat/test-ks.R

raw
1 skip_on_cran()
2
3 skip_if_not_installed("modeltests")
4 library(modeltests)
5
6 skip_if_not_installed("ks")
7
8 test_that("tidy.kde", {
9 check_arguments(tidy.kde)
10
11 fit <- ks::kde(mtcars[, 1:3])
12 td <- tidy(fit)
13
14 check_tidy_output(td)
15 check_dims(td, expected_cols = 4)
16 })