我正在尝试使用kable
和kableExtra
在latex
的{{1}}文档中生成一个表格。
我在.Rmd文件的标题中使用了xcolor包:
Rmarkdown
但是当我在header-includes:
\usepackage{xcolor}
latex_options = "striped"
时
我收到了错误:
kable_styling
如果我不使用knitr::kable(cbind(main()$AEP),format = "latex",booktabs = T)%>%
kable_styling(latex_options="striped",position = "center",full_width = F)
Warning: running command '"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS report.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output report.pdf --template "C:\Users\ali.hadjihosseini\Documents\R\win-library\3.4\rmarkdown\rmd\latex\default-1.17.0.2.tex" --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in"' had status 43
Warning: Error in : pandoc document conversion failed with error 43
Stack trace (innermost first):
53: pandoc_convert
52: convert
51: render
50: download$func [C:\Users\ali\Desktop\dashbord\/server.R#1164]
1: runApp
Error : pandoc document conversion failed with error 43
,一切都很好!
谁能告诉我这里有什么问题?