R/kable.R

Defines functions kable_styling_with_css

Documented in kable_styling_with_css

#' Title
#'
#' @param h
#' @param path
#' @param style
#'
#' @return
#' @export
#'
#' @examples
kable_styling_with_css <- function(h = ., path, style = NULL){
  x <- as.character(shiny::HTML('<link rel="stylesheet" type="text/css" href="style.css">'))
  print(x)
  write(  x = x
        , file = path
        , append = F)
  write(  x = "\n\n"
        , file = path
        , append = TRUE)
  write(  x = h
        , file = path
        , append = TRUE)
}
joelgsponer/waRRior2 documentation built on Feb. 22, 2020, 3:34 a.m.