blob: 562ac796c2bf0ce26f5cd5e60a32e1f30de82aaf [file] [log] [blame]
Hao Zhu73cf3732018-05-11 17:50:05 -04001% 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 Zhu270846b2019-01-06 17:52:26 -05007save_kable(x, file, bs_theme = "simplex", self_contained = TRUE,
8 extra_dependencies = NULL, ..., latex_header_includes = NULL,
9 keep_tex = FALSE)
Hao Zhu73cf3732018-05-11 17:50:05 -040010}
11\arguments{
12\item{x}{A piece of HTML code for tables, usually generated by kable and
13kableExtra}
14
Hao Zhu7f8b6842018-10-23 17:41:13 -040015\item{file}{save to files. If the input table is in HTML and the output file
16ends with \code{.png}, \code{.pdf} and \code{.jpeg}, \code{webshot} will be used to do the
Hao Zhu270846b2019-01-06 17:52:26 -050017conversion.}
Hao Zhu73cf3732018-05-11 17:50:05 -040018
19\item{bs_theme}{Which Bootstrap theme to use}
20
21\item{self_contained}{Will the files be self-contained?}
Hao Zhu7f8b6842018-10-23 17:41:13 -040022
Hao Zhu270846b2019-01-06 17:52:26 -050023\item{extra_dependencies}{Additional HTML dependencies. For example,
24\code{list(}}
25
26\item{...}{Additional variables being passed to \code{webshot::webshot}. This
27is for HTML only.}
28
29\item{latex_header_includes}{A character vector of extra LaTeX header stuff.
30Each element is a row. You can have things like
31\code{c("\\\\usepackage{threeparttable}", "\\\\usepackage{icons}")} You could
32probably add your language package here if you use non-English text in your
33table, 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
36should be kept. Default is \code{FALSE}.}
Hao Zhu73cf3732018-05-11 17:50:05 -040037}
38\description{
39Save kable to files
40}