tests/testthat/_snaps/accessors.md

Default dispatch gives good error message

Code
  get_count_value(mtcars)
Condition
  Error in `get_count_value.default()`:
  ! Not implemented for objects of class <data.frame>.
Code
  get_count_value_name(mtcars)
Condition
  Error in `get_count_value_name.default()`:
  ! Not implemented for objects of class <data.frame>.
Code
  get_count_variable(mtcars)
Condition
  Error in `get_count_variable.default()`:
  ! Not implemented for objects of class <data.frame>.
Code
  get_count_variable_name(mtcars)
Condition
  Error in `get_count_variable_name.default()`:
  ! Not implemented for objects of class <data.frame>.
Code
  get_date_index(mtcars)
Condition
  Error in `get_date_index.default()`:
  ! Not implemented for objects of class <data.frame>.
Code
  get_date_index_name(mtcars)
Condition
  Error in `get_date_index_name.default()`:
  ! Not implemented for objects of class <data.frame>.
Code
  get_group_names(mtcars)
Condition
  Error in `get_group_names.default()`:
  ! Not implemented for objects of class <data.frame>.
Code
  get_groups(mtcars)
Condition
  Error in `get_groups.default()`:
  ! Not implemented for objects of class <data.frame>.


Try the incidence2 package in your browser

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

incidence2 documentation built on Oct. 7, 2024, 1:07 a.m.