简体   繁体   English

无法在Rstudio中从Knitr创建PDF输出

[英]Unable to creat PDF output from knitr in Rstudio

I am not able to create output in Rstudio using knitr package. 我无法使用knitr包在Rstudio中创建输出。 I am having this problem for weeks. 我有这个问题了几个星期。 I am getting the following error: 我收到以下错误:

"Error: pandoc document conversion failed with error 43

In addition I am getting this Warning message: 另外,我收到以下警告消息:

running command '" C:/Users/Krish/AppData/Local/Pandoc/pandoc" +RTS -K512m -RTS assignment1.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output assignment1.pdf --template "C:\\Users\\Krish\\Documents\\R\\win-library\\3.1\\rmarkdown\\rmd\\latex\\default-1.14.tex" --highlight-style tango --latex-engine xelatex --variable "geometry:margin=1in"' had status 43 " 运行命令'“ C:/ Users / Krish / AppData / Local / Pandoc / pandoc” + RTS -K512m -RTS分配1.utf8.md-至乳胶-来自markdown + autolink_bare_uris + ascii_identifiers + tex_math_single_backslash-implicit_figures-输出分配1 .pdf --template“ C:\\ Users \\ Krish \\ Documents \\ R \\ win-library \\ 3.1 \\ rmarkdown \\ rmd \\ latex \\ default-1.14.tex” --highlight-style探戈--latex-engine xelatex --variable “ geometry:margin = 1in”'状态为43

I had the same problem! 我有同样的问题! Please make sure you don't have minor errors in your LaTeX markup. 请确保您的LaTeX标记没有小错误。 In my example after changing the location of the comma from $X,$ to $X$, my pandoc error disappeared and I was able to render my pdf. 在我的示例中,将逗号的位置从$X,$更改$X$,我的pandoc错误消失了,并且能够呈现pdf。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM