splitLine: Split line with line breaks depending on max.width

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

This is a helper function to insert line breaks depending on (split.cells parameter of pandoc.table) of the returning table.

Usage

1
2
splitLine(x, max.width = panderOptions("table.split.cells"),
  use.hyphening = FALSE)

Arguments

x

string to be split. Works only with one string. Non-string arguments and multi-dimensional arguments are returned unchaged

max.width

default integer value specyfing max number of characters between line breaks

use.hyphening

(default: FALSE) if try to use hyphening when splitting large cells according to table.split.cells. Requires koRpus package.

Value

character string with line breaks

Examples

1
2
3
splitLine('foo bar', 6)
splitLine('foo bar', 7)
splitLine('Pandoc Package', 3, TRUE)

pander documentation built on July 11, 2018, 9:01 a.m.