tests/testthat/test-svm_linear-tunable.R

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

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

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.