tests/testthat/test-ordinal_reg.R

test_that("testing", {
  # Testing is done in {ordered}
  # https://github.com/tidymodels/ordered

  expect_true(TRUE)
})

test_that("odds_link", {
  # a legitimate odds link function not recognized by {dials}
  tidy_spec <- ordinal_reg(engine = "polr", odds_link = "adjacent_categories")
  expect_warning(translate(tidy_spec), "odds_link")
})

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.