tests/testthat/_snaps/trunc.md

does not truncate to a length shorter than elipsis

Code
  str_trunc("foobar", 2)
Condition
  Error in `str_trunc()`:
  ! `width` (2) is shorter than `ellipsis` (3).
Code
  str_trunc("foobar", 3, ellipsis = "....")
Condition
  Error in `str_trunc()`:
  ! `width` (3) is shorter than `ellipsis` (4).


Try the stringr package in your browser

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

stringr documentation built on Nov. 15, 2023, 1:08 a.m.