tests/testthat/test-ks.R

context("ks")

skip_on_cran()

skip_if_not_installed("modeltests")
library(modeltests)

skip_if_not_installed("ks")

test_that("tidy.kde", {
  check_arguments(tidy.kde)

  fit <- ks::kde(mtcars[, 1:3])
  td <- tidy(fit)

  check_tidy_output(td)
  check_dims(td, expected_cols = 4)
})

Try the broom package in your browser

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

broom documentation built on Aug. 30, 2022, 1:07 a.m.