R/miniReport.r

htmlTable <- function(
  df,
  caption="Basic Infos",
  col.names = NA,
  row.names = NA
){
  require(kableExtra)
  kable_styling(knitr::kable(df,
                             format = "html",
                             col.names = col.names,
                             row.names = row.names,
                             align = "c",
                             caption = caption,
                             table.attr = "class=\"table table-bordered\""),
                bootstrap_options = c("striped", "hover", "condensed", "responsive"))
}
KidultXJT/Kitult documentation built on May 25, 2019, 12:22 p.m.