blob: a344479ce20d4354001d013404c870da091ede81 [file] [log] [blame]
Hao Zhu79f1e2a2017-06-11 20:55:30 -04001% 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 Zhu3e53e602017-07-26 12:40:57 -04007row_spec(kable_input, row, bold = FALSE, italic = FALSE,
Hao Zhuec7ab922017-08-19 22:56:44 -04008 monospace = FALSE, color = NULL, background = NULL)
Hao Zhu79f1e2a2017-06-11 20:55:30 -04009}
10\arguments{
Hao Zhu76281fe2017-07-03 19:33:09 -040011\item{kable_input}{Output of \code{knitr::kable()} with \code{format} specified}
Hao Zhu79f1e2a2017-06-11 20:55:30 -040012
Hao Zhu2a87e8e2017-06-14 15:49:33 -040013\item{row}{A numeric value indicating which row to be selected. You don't
14need to count in header rows or group labeling rows.}
Hao Zhu79f1e2a2017-06-11 20:55:30 -040015
16\item{bold}{A T/F value to control whether the text of the selected row
17need to be bolded.}
18
19\item{italic}{A T/F value to control whether the text of the selected row
20need to be emphasized.}
Hao Zhu3e53e602017-07-26 12:40:57 -040021
22\item{monospace}{A T/F value to control whether the text of the selected column
23need to be monospaced (verbatim)}
Hao Zhu79f1e2a2017-06-11 20:55:30 -040024}
25\description{
26This function allows users to select a row and then specify
27its look. Right now it supports the following two properties: bold text and
28italic text.
29}
30\examples{
31x <- knitr::kable(head(mtcars), "html")
32row_spec(x, 1, bold = TRUE, italic = TRUE)
33
34}