This function helps you to do a table header with multiple lines
in both HTML and in LaTeX. In HTML this isn't that tricky, you just use
the <br /> command but in LaTeX I often find
myself writing vbox/hbox stuff and therefore
I've created this simple helper function
txtMergeLines(..., html = 5)string with asis_output wrapping if html output is activated
txtMergeLines("hello", "world")
#> [1] "hello<br>\n world"
#> attr(,"class")
#> [1] "knit_asis"
#> attr(,"knit_cacheable")
#> [1] NA
txtMergeLines("hello", "world", html=FALSE)
#> [1] "\\vbox{\\hbox{\\strut hello}\\hbox{\\strut world}}"
txtMergeLines("hello", "world", list("A list", "is OK"))
#> [1] "hello<br>\n world<br>\n A list<br>\n is OK<br>\n A list<br>\n is OK"
#> attr(,"class")
#> [1] "knit_asis"
#> attr(,"knit_cacheable")
#> [1] NA