Hao Zhu | bacd2f3 | 2017-10-11 14:06:36 -0400 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/cell_spec.R |
| 3 | \name{cell_spec} |
| 4 | \alias{cell_spec} |
| 5 | \title{Specify Cell format} |
| 6 | \usage{ |
| 7 | cell_spec(x, format, bold = F, italic = F, monospace = F, color = NULL, |
Hao Zhu | 9ce317e | 2017-10-12 18:19:55 -0400 | [diff] [blame^] | 8 | background = NULL, align = NULL, font_size = NULL, angle = NULL, |
| 9 | hover_message = NULL) |
Hao Zhu | bacd2f3 | 2017-10-11 14:06:36 -0400 | [diff] [blame] | 10 | } |
| 11 | \arguments{ |
| 12 | \item{x}{Things to be formated. It could be a vector of numbers or strings.} |
| 13 | |
| 14 | \item{format}{Either "html" or "latex". It can also be set through |
| 15 | \code{option(knitr.table.format)}, same as \code{knitr::kable()}.} |
| 16 | |
| 17 | \item{bold}{A T/F value to control whether the text of the selected column |
| 18 | need to be bolded.} |
| 19 | |
| 20 | \item{italic}{A T/F value to control whether the text of the selected column |
| 21 | need to be emphasized.} |
| 22 | |
| 23 | \item{monospace}{A T/F value to control whether the text of the selected column |
| 24 | need to be monospaced (verbatim)} |
| 25 | |
| 26 | \item{color}{A character string for column text color. Here please pay |
| 27 | attention to the differences in color codes between HTML and LaTeX.} |
| 28 | |
| 29 | \item{background}{A character string for column background color. Here please |
| 30 | pay attention to the differences in color codes between HTML and LaTeX.} |
| 31 | |
| 32 | \item{align}{A character string for cell alignment. For HTML, possible values could |
| 33 | be \code{l}, \code{c}, \code{r} plus \code{left}, \code{center}, \code{right}, \code{justify}, \code{initial} and \code{inherit} |
| 34 | while for LaTeX, you can only choose from \code{l}, \code{c} & \code{r}.} |
| 35 | |
| 36 | \item{font_size}{Only if you want to specify font size locally in HTML. |
| 37 | This feature is not available in LaTeX} |
| 38 | |
Hao Zhu | 9ce317e | 2017-10-12 18:19:55 -0400 | [diff] [blame^] | 39 | \item{angle}{0-360, degree that the text will rotate. Can be a vector.} |
| 40 | |
| 41 | \item{hover_message}{A vector of strings to be displayed as hover message. |
| 42 | Of course, this feature is nly available in HTML.} |
Hao Zhu | bacd2f3 | 2017-10-11 14:06:36 -0400 | [diff] [blame] | 43 | } |
| 44 | \description{ |
| 45 | Specify Cell format before it gets into kable |
| 46 | } |