tests/testthat/_snaps/assertions.md

assert_dateish rejects impossible dates

Code
  assert_dateish(start_date)
Condition
  Error:
  ! Assertion on 'start_date' failed: Must be a Date or a valid date string in 'YYYY-MM-DD' format.
Code
  assert_dateish(end_date, null.ok = TRUE)
Condition
  Error:
  ! Assertion on 'end_date' failed: Must be `NULL`, a Date, or a valid date string in 'YYYY-MM-DD' format.

assert_one_of requires exactly one non-NULL argument

Code
  assert_one_of(y, z)
Condition
  Error:
  ! Exactly one of `y` or `z` must be provided.
Code
  assert_one_of(w, x, y)
Condition
  Error:
  ! Exactly one of `w`, `x`, or `y` must be provided.


Try the bbk package in your browser

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

bbk documentation built on Oct. 21, 2026, 5:14 p.m.