tests/testthat/_snaps/to_int_scalar.md

to_int_scalar() provides informative error messages

Code
  to_int_scalar(given)
Condition
  Error:
  ! `given` must be a single <integer>.
  x `given` has 10 values.
Code
  wrapper(given)
Condition
  Error in `wrapper()`:
  ! `wrapper_val` must be a single <integer>.
  x `wrapper_val` has 10 values.


Try the stbl package in your browser

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

stbl documentation built on May 29, 2024, 5:52 a.m.