View source: R/utils-linebreaker.R
linebreaker | R Documentation |
\\makecell{}
macro around some textPlace a LaTeX \\makecell{}
macro around some text
linebreaker(x, align = c("l", "c", "r"), ...)
x |
A vector of character strings |
align |
Choose from "l", "c" or "r" for "left", "center", and "right" respectively |
... |
Arguments passed to |
This function is a wrapper around kableExtra::linebreak()
which itself
does not wrap the makecell macro around strings without the linebreak
character. For table headers, this needs to be done to keep all headers
aligned the same way with respect to each other.
A vector of modified character strings or NULL
if x
is NULL
or
NA
if x
is NA
. Any empty strings will remain the same, without
wrapping text
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.