错误2导致pandoc文档转换失败 [英] pandoc document conversion failed with error 2
问题描述
C:/ Users / Susan / ANACON〜1 /脚本/ pandoc+ RTS -K512m -RTS lesson3_student.utf8.md --to html - from markdown + autolink_bare_uris + ascii_identifiers + tex_math_single_backslash --output lesson3_student.html --smart --email-obfuscation none - self-contained - standalone --section-divs --templateC:\Users\Susan\Documents\R\win-library\3.3\rmarkdown\rmd\h\default.html--no -highlight --variable highlightjs = 1 --variabletheme:bootstrap--include-in-headerC:\ Users \Susan\AppData\Local\Temp\RtmpaUaaRx\rmarkdown-str3cf45da21737。 html--mathjax --variablemathjax-url: https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
输出文件:lesson3_student.knit.md
无法识别ed选项`--smart'
请尝试pandoc.exe --help以获取更多信息。
错误:pandoc文档转换失败,错误2
此外:警告消息:
正在运行命令'C:/ Users / Susan / ANACON〜1 / Scripts / pandoc+ RTS -K512m -RTS lesson3_student.utf8.md --to html --from markdown + autolink_bare_uris + ascii_identifiers + tex_math_single_backslash --output lesson3_student.html --smart --email-obfuscation none - 自带的--standalone --section-divs - -templateC:\ Users \Susan\Documents\R\win-library\3.3\rmarkdown\rmd\h\default.html--no-highlight --variable highlightjs = 1 - 变量主题:bootstrap--include-in-headerC:\ Users \Susan\AppData\Local\Temp\RtmpaUaaRx\rmarkdown-str3cf45da21737.html--mathjax - 变量mathjax-url: https://cdn.mathjax .org / mathjax / latest / MathJax.js?config = TeX-AMS-MML_HTMLorMML '有状态2
执行ha
$有人可以告诉我一个错误, b
谢谢
今天我遇到了同样的问题。
我通过将智能选项设置为 false
来修正它,如 here 。
<$ p $输出:
html_document:
smart:false
最新的pandoc版本(1.19.2.1)不再支持 - smart
,尽管它应该是;请参阅 RStudio论坛
when I knit HTML in R studio, I get this:
"C:/Users/Susan/ANACON~1/Scripts/pandoc" +RTS -K512m -RTS lesson3_student.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output lesson3_student.html --smart --email-obfuscation none --self-contained --standalone --section-divs --template "C:\Users\Susan\Documents\R\win-library\3.3\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "C:\Users\Susan\AppData\Local\Temp\RtmpaUaaRx\rmarkdown-str3cf45da21737.html" --mathjax --variable "mathjax-url:https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" output file: lesson3_student.knit.md
unrecognized option `--smart' Try pandoc.exe --help for more information. Error: pandoc document conversion failed with error 2 In addition: Warning message: running command '"C:/Users/Susan/ANACON~1/Scripts/pandoc" +RTS -K512m -RTS lesson3_student.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output lesson3_student.html --smart --email-obfuscation none --self-contained --standalone --section-divs --template "C:\Users\Susan\Documents\R\win-library\3.3\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "C:\Users\Susan\AppData\Local\Temp\RtmpaUaaRx\rmarkdown-str3cf45da21737.html" --mathjax --variable "mathjax-url:https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"' had status 2 Execution halted
Can someone give me an idea what went wrong and how to fix it?
Thank you
Today I had the same problem.
I fixed it by setting the smart option to false
, as described here.
output:
html_document:
smart: false
It seems that --smart
is no longer supported in the newest pandoc version (1.19.2.1), even though it should be should be; see discusion on the RStudio forum
这篇关于错误2导致pandoc文档转换失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!