str_wrap: Add line breaks to a string at a specified width.

View source: R/string_helpers.R View source: R/string_helpers.R

str_wrapR Documentation

Add line breaks to a string at a specified width.

Description

Add line breaks to a string at a specified width.

Usage

str_wrap(string, width = 80)

Arguments

string

(character) A character vector of length 1.

width

(integer|numeric) The number of character per line.

Value

A character vector of length 1 with the added line breaks.


salix-d/salixUtils documentation built on Aug. 14, 2024, 7:11 a.m.