| % Generated by roxygen2: do not edit by hand |
| % Please edit documentation in R/row_spec.R |
| \name{row_spec} |
| \alias{row_spec} |
| \title{Specify the look of the selected row} |
| \usage{ |
| row_spec(kable_input, row, bold = FALSE, italic = FALSE, |
| monospace = FALSE, color = NULL, background = NULL, align = NULL, |
| font_size = NULL) |
| } |
| \arguments{ |
| \item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified} |
| |
| \item{row}{A numeric value or vector indicating which row(s) to be selected. You don't |
| need to count in header rows or group labeling rows.} |
| |
| \item{bold}{A T/F value to control whether the text of the selected row |
| need to be bolded.} |
| |
| \item{italic}{A T/F value to control whether the text of the selected row |
| need to be emphasized.} |
| |
| \item{monospace}{A T/F value to control whether the text of the selected column |
| need to be monospaced (verbatim)} |
| |
| \item{color}{A character string for row text color. Here please pay |
| attention to the differences in color codes between HTML and LaTeX.} |
| |
| \item{background}{A character string for row background color. Here please |
| pay attention to the differences in color codes between HTML and LaTeX.} |
| |
| \item{align}{A character string for cell alignment. For HTML, possible values could |
| be \code{l}, \code{c}, \code{r} plus \code{left}, \code{center}, \code{right}, \code{justify}, \code{initial} and \code{inherit} |
| while for LaTeX, you can only choose from \code{l}, \code{c} & \code{r}.} |
| |
| \item{font_size}{Only if you want to specify font size locally in HTML. This feature |
| is not available in LaTeX} |
| } |
| \description{ |
| This function allows users to select a row and then specify |
| its look. It can also specify the format of the header row when \code{row} = 0. |
| } |
| \examples{ |
| x <- knitr::kable(head(mtcars), "html") |
| row_spec(x, 1:2, bold = TRUE, italic = TRUE) |
| |
| } |