Learn R Programming

report (version 0.1.0)

format_text_wrap: Autowrap String

Description

Autowrap String

Usage

format_text_wrap(x, width = NULL)

Arguments

x

Character vector.

width

Positive integer giving the target column for wrapping lines in the output.

Examples

Run this code
# NOT RUN {
x <- paste(rep("a very long string", 50), collapse = " ")
format_text_wrap(x, width = 50)
# }

Run the code above in your browser using DataLab