tests/testthat/_snaps/metric-tweak.md

cannot use protected names

Code
  metric_tweak("f_meas2", f_meas, data = 2)
Condition
  Error in `check_protected_names()`:
  ! Arguments passed through `...` cannot be named any of: 'data', 'truth', 'estimate'.
Code
  metric_tweak("f_meas2", f_meas, truth = 2)
Condition
  Error in `check_protected_names()`:
  ! Arguments passed through `...` cannot be named any of: 'data', 'truth', 'estimate'.
Code
  metric_tweak("f_meas2", f_meas, estimate = 2)
Condition
  Error in `check_protected_names()`:
  ! Arguments passed through `...` cannot be named any of: 'data', 'truth', 'estimate'.

name must be a string

Code
  metric_tweak(1, f_meas, beta = 2)
Condition
  Error in `metric_tweak()`:
  ! `.name` must be a string.

fn must be a metric function

Code
  metric_tweak("foo", function() { }, beta = 2)
Condition
  Error in `metric_tweak()`:
  ! `.fn` must be a metric function.

All ... must be named

Code
  metric_tweak("foo", accuracy, 1)
Condition
  Error in `metric_tweak()`:
  ! All arguments passed through `...` must be named.


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.