commit | d2c0f73e21c69c84a02de780cbdb5515e03baf1d | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu@hsl.harvard.edu> | Sat Aug 26 10:40:14 2017 -0400 |
committer | Hao Zhu <haozhu@hsl.harvard.edu> | Sat Aug 26 10:40:14 2017 -0400 |
tree | 934a8fb3d3dd4ef60a433f6c5668cffa9d0e61c8 | |
parent | f451dbb62cf72e16050fe39ea5ae99b3fd53a617 [diff] [blame] |
add enc2utf8 to solve unicode issue
diff --git a/R/landscape.R b/R/landscape.R index 75d9255..fd7789e 100644 --- a/R/landscape.R +++ b/R/landscape.R
@@ -28,7 +28,9 @@ kable_attrs <- attributes(kable_input) usepackage_latex("pdflscape") out <- paste0( - "\n\\begin{landscape}", kable_input, "\n\\end{landscape}" + "\n\\begin{landscape}", + enc2utf8(as.character(kable_input)), + "\n\\end{landscape}" ) if (!is.null(margin)) {