gpt4 book ai didi

html - pandoc 文档转换失败,错误 2

转载 作者:太空狗 更新时间:2023-10-29 13:19:58 25 4
gpt4 key购买 nike

当我在 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 --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

谁能告诉我哪里出了问题以及如何解决?

谢谢

最佳答案

今天我遇到了同样的问题。我通过将智能选项设置为 false 来修复它,如 here 所述.

   output:
html_document:
smart: false

似乎 --smart 在最新的 pandoc 版本(1.19.2.1)中不再受支持,尽管它应该是应该的;见discusion on the RStudio forum

关于html - pandoc 文档转换失败,错误 2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42427481/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com