R/html_cell.R

Defines functions html_cell

Documented in html_cell

#' Write html code for a cell
#' @param width Integer. relative width of the cell.
#' @return Character. html cell.
#' @export


html_cell <- function(width = 1){
  cell <- paste0(
    '<div style="flex: ', width, '; margin:1%; padding: 1%; background-color: white; border: solid 1px white; color:black; text-align: left; vertical-align: top;">\n\n\n</div>'
  )
  return(cell)
}
NicolasJBM/writer documentation built on Aug. 12, 2019, 2:36 p.m.