File: splitLine.Rd

package info (click to toggle)
r-cran-pander 0.6.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,264 kB
  • sloc: javascript: 6,787; cpp: 145; lisp: 94; makefile: 17
file content (30 lines) | stat: -rw-r--r-- 978 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{splitLine}
\alias{splitLine}
\title{Split line with line breaks depending on max.width}
\usage{
splitLine(
  x,
  max.width = panderOptions("table.split.cells"),
  use.hyphening = FALSE
)
}
\arguments{
\item{x}{string to be split. Works only with one string. Non-string arguments and multi-dimensional arguments are returned unchanged}

\item{max.width}{default integer value specifying max number of characters between line breaks}

\item{use.hyphening}{(default: \code{FALSE}) if try to use hyphening when splitting large cells according to table.split.cells. Requires \pkg{sylly}.}
}
\value{
character string with line breaks
}
\description{
This is a helper function to insert line breaks depending on (\code{split.cells} parameter of \code{pandoc.table}) of the returning table.
}
\examples{
splitLine('foo bar', 6)
splitLine('foo bar', 7)
splitLine('Pandoc Package', 3, TRUE)
}