str_wrap() with
instead

str_wrap_br(string, whitespace_only = FALSE, ...)

Arguments

string

Input vector. Either a character vector, or something coercible to one.

whitespace_only

If TRUE wrapping will only occur at whitespace. If FALSE (the default), can break on any non-word character (e.g. /, -). Note that this default is different from the underlying stringr::str_wrap().

...

other arguments passed to stringr::str_wrap()