This is a helper function to insert line breaks depending on (split.cells parameter of pandoc.table) of the returning table.
splitLine(
x,
max.width = panderOptions("table.split.cells"),
use.hyphening = FALSE
)string to be split. Works only with one string. Non-string arguments and multi-dimensional arguments are returned unchaged
default integer value specyfing 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.
character string with line breaks
splitLine('foo bar', 6)
#> [1] "foo\nbar"
splitLine('foo bar', 7)
#> [1] "foo bar"
splitLine('Pandoc Package', 3, TRUE)
#> [1] "Pan-\ndoc\nPack-\nage"