簡體   English   中英

pandoc文檔轉換失敗,錯誤2

[英]pandoc document conversion failed with error 2

當我在R studio中編寫HTML時,我得到了這個:

“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 - 變量“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”輸出文件:lesson3_student.knit.md

無法識別的選項`--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 - 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 = Te-SAMS -MML_HTMLorMML “'狀態為2執行暫停

有人能告訴我出了什么問題以及如何解決這個問題嗎?

謝謝

今天我遇到了同樣的問題。 我通過智能選項設置為固定的, false ,如所描述這里

   output:
     html_document: 
       smart: false

看來, --smart在最新版本pandoc(1.19.2.1)不再支持,即使它應該是應該的; 看看RStudio論壇上的討論

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM