tests/testthat/test-nearest_neighbor-tunable.R

test_that("tunable parameters for nearest_neighbor + kknn", {
  expect_snapshot(
    display_tunable_call_info(
      nearest_neighbor() |> set_engine("kknn")
    )
  )
})

Try the parsnip package in your browser

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

parsnip documentation built on May 14, 2026, 5:08 p.m.