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 = "",
class_td = "",
class_th = "",
link_label = NULL
)
rtable
object
width
class for table tag
class for tr tag
class for td tag
class for th tag
link anchor label (not including tab:
prefix) for the table.
A shiny.tag
object representing x
in HTML.
# NOT RUN {
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, class_td = "aaa")
# }
# NOT RUN {
Viewer(tbl)
# }
Run the code above in your browser using DataLab