splitStringToFixedwidthLines: Given a string with spaces, try to split into multiple lines...

View source: R/accessory.R

splitStringToFixedwidthLinesR Documentation

Given a string with spaces, try to split into multiple lines of < linewidth characters

Description

Given a string with spaces, try to split into multiple lines of < linewidth characters

Usage

splitStringToFixedwidthLines(string, linewidth = 20)

Arguments

string

A string with spaces

linewidth

The maximum line length in characters (default: 20)

Value

A string with newline characters added where appropriate

Examples

splitStringToFixedwidthLines("once upon a time there was a giant and a beanstalk and a pot of gold and some beans")


pinin4fjords/shinyngs documentation built on May 5, 2024, 7:17 a.m.