as_html | R Documentation |
rtable
object to a shiny.tag
HTML objectThe returned HTML object can be immediately used in shiny
and rmarkdown
.
as_html(
x,
width = NULL,
class_table = "table table-condensed table-hover",
class_tr = NULL,
class_th = NULL,
link_label = NULL,
bold = c("header"),
header_sep_line = TRUE,
no_spaces_between_cells = FALSE,
expand_newlines = FALSE
)
x |
( |
width |
( |
class_table |
( |
class_tr |
( |
class_th |
( |
link_label |
( |
bold |
( |
header_sep_line |
( |
no_spaces_between_cells |
( |
expand_newlines |
( |
A shiny.tag
object representing x
in HTML.
tbl <- rtable(
header = LETTERS[1:3],
format = "xx",
rrow("r1", 1, 2, 3),
rrow("r2", 4, 3, 2, indent = 1),
rrow("r3", indent = 2)
)
as_html(tbl)
as_html(tbl, class_table = "table", class_tr = "row")
as_html(tbl, bold = c("header", "row_names"))
## Not run:
Viewer(tbl)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.