Currently kableExtra
0.5.1 only supports Specify the look of the selected row. I wonder if there is any tweak to specify the look of selected rows programatically like row_spec(x, c(1, 3, 4), bold = TRUE, italic = TRUE)
. Thanks
library(knitr)
library(kableExtra)
x <- knitr::kable(head(mtcars), "latex")
kableExtra::row_spec(x, 1, bold = TRUE, italic = TRUE)
You can do it in a loop.