Hao Zhu | f1873a4 | 2019-01-07 15:57:01 -0500 | [diff] [blame] | 1 | % 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{ |
| 7 | as_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{ |
| 19 | This function generates a temporary png file using \code{save_kable} |
| 20 | and then try to put it in an rmarkdown document using |
| 21 | \code{knitr::include_graphics}. |
| 22 | } |