clean up kable_as_image documentation
diff --git a/R/kable_as_image.R b/R/kable_as_image.R
index ed4bb29..48e47a4 100644
--- a/R/kable_as_image.R
+++ b/R/kable_as_image.R
@@ -6,7 +6,7 @@
#' rmarkdown environment. It is a "better than nothing" solution to print high
#' quality tables in rmarkdown Word document. By using this, you need to take
#' the responsibility of explaining to your collaborators why they can't make
-#' edits to the tables in Word. 😂
+#' edits to the tables in Word.
#'
#' Also, if a filename is provided, user has the option to "save" the table to
#' an image file like `ggplot2::ggsave()`.
@@ -28,8 +28,6 @@
#' @param keep_pdf A T/F option to control if the mid-way standalone pdf should
#' be kept. Default is `FALSE`.
#'
-#' @examples kable_as_image(knitr::kable(mtcars, "latex", booktabs = TRUE), "mtcars")
-#'
#' @export
kable_as_image <- function(kable_input, filename = NULL,
file_format = "png",
@@ -39,7 +37,7 @@
"\\documentclass[border=1mm, preview]{standalone}",
"\\usepackage[active,tightpage]{preview}",
"\\usepackage{varwidth}",
- "\\usepackage{amssymb,amsmath}",
+ "\\usepackage{amssymb, amsmath}",
"\\usepackage{ifxetex,ifluatex}",
"\\usepackage{fixltx2e}",
"\\usepackage{polyglossia}",
diff --git a/man/kable_as_image.Rd b/man/kable_as_image.Rd
index 4492fff..688f59b 100644
--- a/man/kable_as_image.Rd
+++ b/man/kable_as_image.Rd
@@ -32,7 +32,7 @@
rmarkdown environment. It is a "better than nothing" solution to print high
quality tables in rmarkdown Word document. By using this, you need to take
the responsibility of explaining to your collaborators why they can't make
-edits to the tables in Word. 😂
+edits to the tables in Word.
Also, if a filename is provided, user has the option to "save" the table to
an image file like \code{ggplot2::ggsave()}.
@@ -41,7 +41,3 @@
The approach was learned and adopted from the \href{https://github.com/metrumresearchgroup/texPreview}{texpreview}
package, which allows you to preview the results of TeX code in the Viewer panel.
}
-\examples{
-kable_as_image(knitr::kable(mtcars, "latex", booktabs = TRUE), "mtcars")
-
-}