tests/testthat/_snaps/aaa-new.md

fn is validated

Code
  new_class_metric(1, "maximize")
Condition
  Error in `new_metric()`:
  ! `fn` must be a function.

direction is validated

Code
  new_class_metric(function() 1, "min")
Condition
  Error in `new_metric()`:
  ! `direction` must be one of "maximize", "minimize", or "zero", not "min".
  i Did you mean "minimize"?


Try the yardstick package in your browser

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

yardstick documentation built on April 21, 2023, 9:08 a.m.