commit | 938b657b09b2a7c229e629945d2045621ac3601f | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Mon Jul 24 17:34:46 2017 -0400 |
committer | Hao Zhu <haozhu233@gmail.com> | Mon Jul 24 17:34:46 2017 -0400 |
tree | 961f68b66c703eda6194eca0c4b017d92a06e3e3 | |
parent | 558c72f0df2dbf3944442c1816a98c636342530a [diff] [blame] |
Fixed a bug caused by readLines
diff --git a/R/util.R b/R/util.R index 40dab5e..87f72c8 100644 --- a/R/util.R +++ b/R/util.R
@@ -74,8 +74,7 @@ as_kable_xml <- function(x) { tmp <- tempfile(fileext = ".xml") write_xml(x, tmp, options = "no_declaration") - out <- readLines(tmp, warn = FALSE) - out <- paste(out, collapse = "\n") + out <- read_file(tmp) out <- structure(out, format = "html", class = "knitr_kable") return(out) }