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>.


reconhub/incidence2 documentation built on Nov. 30, 2024, 4:43 p.m.