tests/testthat/test-engines.R

test_that("NULL engines", {
  # See issue https://github.com/tidymodels/parsnip/issues/1242

  expect_snapshot(
    set_engine(nearest_neighbor(), NULL),
    error = TRUE
  )
})

Try the parsnip package in your browser

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

parsnip documentation built on April 4, 2025, 1:53 a.m.