当我在 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 无 --self-contained --standalone --section-divs --template "C:\Users\Susan\Documents\R\win-library\3.3\rmarkdown\rmd\h\default.html" --no-highlight --变量highlightjs=1 --变量“主题:bootstrap” --include-in-header“C:\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 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 无 --self-contained --standalone --section-divs --template "C:\Users\Susan\Documents\R\win-library\3.3\rmarkdown\rmd\h\default .html”--no-highlight--变量highlightjs=1--变量“主题:bootstrap”--include-in-header“C:\ 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 https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"' 状态为 2
执行停止
有人可以告诉我出了什么问题以及如何解决吗?
谢谢
今天我遇到了同样的问题。
我通过将智能选项设置为来修复它false
,如上所述here https://support.rstudio.com/hc/en-us/community/posts/203856138-Option-to-set-output-for-Knit-button.
output:
html_document:
smart: false
看起来--smart
最新的 pandoc 版本 (1.19.2.1) 不再支持,尽管应该是;看RStudio 论坛上的讨论 https://support.rstudio.com/hc/en-us/community/posts/115000885267-Rmarkdown-defaults-fail-because-of-Pandoc
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)