Debian Codegraph @

man/splitLine.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/helpers.R
3 \name{splitLine}
4 \alias{splitLine}
5 \title{Split line with line breaks depending on max.width}
6 \usage{
7 splitLine(
8 x,
9 max.width = panderOptions("table.split.cells"),
10 use.hyphening = FALSE
11 )
12 }
13 \arguments{
14 \item{x}{string to be split. Works only with one string. Non-string arguments and multi-dimensional arguments are returned unchanged}
15
16 \item{max.width}{default integer value specifying max number of characters between line breaks}
17
18 \item{use.hyphening}{(default: \code{FALSE}) if try to use hyphening when splitting large cells according to table.split.cells. Requires \pkg{sylly}.}
19 }
20 \value{
21 character string with line breaks
22 }
23 \description{
24 This is a helper function to insert line breaks depending on (\code{split.cells} parameter of \code{pandoc.table}) of the returning table.
25 }
26 \examples{
27 splitLine('foo bar', 6)
28 splitLine('foo bar', 7)
29 splitLine('Pandoc Package', 3, TRUE)
30 }