Hao Zhu | 79f1e2a | 2017-06-11 20:55:30 -0400 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/row_spec.R |
| 3 | \name{row_spec} |
| 4 | \alias{row_spec} |
| 5 | \title{Specify the look of the selected row} |
| 6 | \usage{ |
Hao Zhu | 3e53e60 | 2017-07-26 12:40:57 -0400 | [diff] [blame] | 7 | row_spec(kable_input, row, bold = FALSE, italic = FALSE, |
| 8 | monospace = FALSE) |
Hao Zhu | 79f1e2a | 2017-06-11 20:55:30 -0400 | [diff] [blame] | 9 | } |
| 10 | \arguments{ |
Hao Zhu | 76281fe | 2017-07-03 19:33:09 -0400 | [diff] [blame] | 11 | \item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified} |
Hao Zhu | 79f1e2a | 2017-06-11 20:55:30 -0400 | [diff] [blame] | 12 | |
Hao Zhu | 2a87e8e | 2017-06-14 15:49:33 -0400 | [diff] [blame] | 13 | \item{row}{A numeric value indicating which row to be selected. You don't |
| 14 | need to count in header rows or group labeling rows.} |
Hao Zhu | 79f1e2a | 2017-06-11 20:55:30 -0400 | [diff] [blame] | 15 | |
| 16 | \item{bold}{A T/F value to control whether the text of the selected row |
| 17 | need to be bolded.} |
| 18 | |
| 19 | \item{italic}{A T/F value to control whether the text of the selected row |
| 20 | need to be emphasized.} |
Hao Zhu | 3e53e60 | 2017-07-26 12:40:57 -0400 | [diff] [blame] | 21 | |
| 22 | \item{monospace}{A T/F value to control whether the text of the selected column |
| 23 | need to be monospaced (verbatim)} |
Hao Zhu | 79f1e2a | 2017-06-11 20:55:30 -0400 | [diff] [blame] | 24 | } |
| 25 | \description{ |
| 26 | This function allows users to select a row and then specify |
| 27 | its look. Right now it supports the following two properties: bold text and |
| 28 | italic text. |
| 29 | } |
| 30 | \examples{ |
| 31 | x <- knitr::kable(head(mtcars), "html") |
| 32 | row_spec(x, 1, bold = TRUE, italic = TRUE) |
| 33 | |
| 34 | } |