str_wrap: str_wrap

View source: R/str-utils.R

str_wrapR Documentation

str_wrap

Description

Wrap long strings to multiple lines

Usage

str_wrap(string, width = getOption("width"))

Arguments

string

Input string

width

Maximum characters before wrapping

Value

Updated strings with "\n" inserted

Author(s)

Guangchuang Yu

See Also

Other str-utils: str_detect(), str_extract(), str_starts()


yulab.utils documentation built on Feb. 5, 2026, 9:10 a.m.