tests/testthat/_snaps/probcurve-gain_curve.md

na_rm = FALSE errors if missing values are present

Code
  gain_curve_vec(df$truth, df$Class1, na_rm = FALSE)
Condition
  Error in `gain_curve_vec()`:
  x Missing values were detected and `na_ra = FALSE`.
  i Not able to perform calculations.

errors with class_pred input

Code
  gain_curve_vec_vec(cp_truth, estimate)
Condition
  Error in `gain_curve_vec_vec()`:
  ! could not find function "gain_curve_vec_vec"

na_rm argument check

Code
  gain_curve_vec(1, 1, na_rm = "yes")
Condition
  Error in `gain_curve_vec()`:
  ! `na_rm` must be `TRUE` or `FALSE`, not the string "yes".


Try the yardstick package in your browser

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

yardstick documentation built on April 8, 2026, 1:06 a.m.