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: 30)

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 June 29, 2024, 8:55 a.m.