str_wrap() with str_wrap_br.Rdstr_wrap() with
instead
str_wrap_br(string, whitespace_only = FALSE, ...)Input vector. Either a character vector, or something coercible to one.
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()