str_wrap: Wrap text

View source: R/utils.R

str_wrapR Documentation

Wrap text

Description

Wrap text

Usage

str_wrap(x, width = 80)

Arguments

x

A character vector to wrap.

width

The maximum width of the lines.

Value

A character vector with wrapped text.

Examples

str_wrap(rep("Hello, world!", 10))
str_wrap(rep("Hello, world!", 10), width = 10)

thisutils documentation built on July 3, 2025, 9:09 a.m.