Hao Zhu | 73cf373 | 2018-05-11 17:50:05 -0400 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/save_kable.R |
| 3 | \name{save_kable} |
| 4 | \alias{save_kable} |
| 5 | \title{Save kable to files} |
| 6 | \usage{ |
Hao Zhu | 270846b | 2019-01-06 17:52:26 -0500 | [diff] [blame] | 7 | save_kable(x, file, bs_theme = "simplex", self_contained = TRUE, |
| 8 | extra_dependencies = NULL, ..., latex_header_includes = NULL, |
| 9 | keep_tex = FALSE) |
Hao Zhu | 73cf373 | 2018-05-11 17:50:05 -0400 | [diff] [blame] | 10 | } |
| 11 | \arguments{ |
| 12 | \item{x}{A piece of HTML code for tables, usually generated by kable and |
| 13 | kableExtra} |
| 14 | |
Hao Zhu | 7f8b684 | 2018-10-23 17:41:13 -0400 | [diff] [blame] | 15 | \item{file}{save to files. If the input table is in HTML and the output file |
| 16 | ends with \code{.png}, \code{.pdf} and \code{.jpeg}, \code{webshot} will be used to do the |
Hao Zhu | 270846b | 2019-01-06 17:52:26 -0500 | [diff] [blame] | 17 | conversion.} |
Hao Zhu | 73cf373 | 2018-05-11 17:50:05 -0400 | [diff] [blame] | 18 | |
| 19 | \item{bs_theme}{Which Bootstrap theme to use} |
| 20 | |
| 21 | \item{self_contained}{Will the files be self-contained?} |
Hao Zhu | 7f8b684 | 2018-10-23 17:41:13 -0400 | [diff] [blame] | 22 | |
Hao Zhu | 270846b | 2019-01-06 17:52:26 -0500 | [diff] [blame] | 23 | \item{extra_dependencies}{Additional HTML dependencies. For example, |
| 24 | \code{list(}} |
| 25 | |
| 26 | \item{...}{Additional variables being passed to \code{webshot::webshot}. This |
| 27 | is for HTML only.} |
| 28 | |
| 29 | \item{latex_header_includes}{A character vector of extra LaTeX header stuff. |
| 30 | Each element is a row. You can have things like |
| 31 | \code{c("\\\\usepackage{threeparttable}", "\\\\usepackage{icons}")} You could |
| 32 | probably add your language package here if you use non-English text in your |
| 33 | table, such as \code{\\\\usepackage[magyar]{babel}}.} |
| 34 | |
| 35 | \item{keep_tex}{A T/F option to control if the latex file that is initially created |
| 36 | should be kept. Default is \code{FALSE}.} |
Hao Zhu | 73cf373 | 2018-05-11 17:50:05 -0400 | [diff] [blame] | 37 | } |
| 38 | \description{ |
| 39 | Save kable to files |
| 40 | } |