powered by
This is a helper function to insert line breaks depending on (split.cells parameter of pandoc.table) of the returning table.
split.cells
pandoc.table
splitLine( x, max.width = panderOptions("table.split.cells"), use.hyphening = FALSE )
character string with line breaks
string to be split. Works only with one string. Non-string arguments and multi-dimensional arguments are returned unchanged
default integer value specifying max number of characters between line breaks
(default: FALSE) if try to use hyphening when splitting large cells according to table.split.cells. Requires sylly.
FALSE
splitLine('foo bar', 6) splitLine('foo bar', 7) splitLine('Pandoc Package', 3, TRUE)
Run the code above in your browser using DataLab