split_text_block {teal.reporter}R Documentation

Divide text block into smaller blocks

Description

Split a text block into smaller blocks with a specified number of lines.

Usage

split_text_block(x, n)

Arguments

x

(character) string containing the input block of text

n

(integer) number of lines per block

Details

A single character string containing a text block of multiple lines (separated by ⁠\n⁠) is split into multiple strings with n or less lines each.

Value

List of character strings with up to n lines in each element.


[Package teal.reporter version 0.4.0 Index]