blob: 8ca65be21389ce1562eef453768c85dcd4eb2c34 [file] [log] [blame]
Hao Zhuf1873a42019-01-07 15:57:01 -05001% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/as_image.R
3\name{as_image}
4\alias{as_image}
5\title{Render the table as an format-independent image and use it in rmarkdown}
6\usage{
7as_image(x, width = NULL, height = NULL, ...)
8}
9\arguments{
10\item{x}{kable input. Either HTML or LaTeX}
11
12\item{width}{Image width in inches. (1 inch = 2.54 cm)}
13
14\item{height}{Image height in inches. (1 inch = 2.54 cm)}
15
16\item{...}{Additional arguments passed to save_kable.}
17}
18\description{
19This function generates a temporary png file using \code{save_kable}
20and then try to put it in an rmarkdown document using
21\code{knitr::include_graphics}.
22}