wrap | R Documentation |
Text wrapping only works when the table width()
has been set. In
particular, if you want to insert newlines in cells, then you should
set a value for width()
and set wrap
to TRUE
.
wrap(ht)
wrap(ht) <- value
set_wrap(ht, row, col, value )
map_wrap(ht, row, col, fn)
ht |
A huxtable. |
row |
A row specifier. See rowspecs for details. |
col |
An optional column specifier. |
fn |
A mapping function. See mapping-functions for details. |
value |
A logical vector or matrix. Set to |
wrap()
returns the wrap
property.
set_wrap()
returns the modified huxtable.
long_text <- paste(
rep("Some long text.", 10),
collapse = " "
)
ht <- huxtable(Long = long_text)
width(ht) <- 0.2
wrap(ht) <- TRUE
## Not run:
quick_html(ht)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.