【问题标题】:rmarkdown readthedown template errorrmarkdown readthedown 模板错误
【发布时间】:2017-05-27 04:27:57
【问题描述】:

我在编织readthedown 模板时遇到此错误。事实上,rmarkdown 的所有 html rmdformats 模板都失败了。

我得到这个错误:

"D:/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS test.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output test.html --smart - -email-obfuscation none --self-contained --mathjax --variable "mathjax-url:https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --variable "gallery:false" --standalone --section-divs --table-of-contents -- toc-depth 2 --template "D:\R-3.3.2\library\rmdformats\templates\readthedown\readthedown.html" --highlight-style kate --variable "theme:bootstrap" --include-in-header "C:\Users\602891\AppData\Local\Temp\Rtmp2RnypK\rmarkdown-str26c4151511b5.html" pandoc.exe:无法获取 /tabsets.js /tabsets.js: openBinaryFile: 不存在(没有这样的文件或目录) 错误:pandoc 文档转换失败,错误 67 另外:警告信息: 1:当不使用 rmarkdown“默认”模板时,MathJax 不适用于 self_contained。 2:运行命令'"D:/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS test.utf8.

md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output test.html --smart --email-obfuscation none --self-contained --mathjax --variable "mathjax-url:@ 987654322@" --variable "gallery:false" --standalone --section-divs --table-of-contents --toc-depth 2 --template "D:\R-3.3.2\library\rmdformats\templates \readthedown\readthedown.html" --highlight-style kate --variable "theme:bootstrap" --include-in-header "C:\Users\602891\AppData\Local\Temp\Rtmp2RnypK\rmarkdown-str26c4151511b5.html" ' 状态为 67 执行停止

我认为安装该软件包应该可以,但我似乎无法编织它。

【问题讨论】:

  • 也许这个问题:github.com/juba/rmdformats/issues/23 ;您应该尝试按照 juba 的建议安装 github 版本:devtools::install_github("juba/rmdformats")
  • 欢迎来到 Stack Overflow!我已经编辑了你的问题。 rmarkdown 在正文和标题中拼写错误。我重新格式化了错误消息,以便于阅读。我试图纠正语法并删除了 SO 不需要的称呼。我添加了 rmarkdown 标签。请edit您的问题并解释导致错误的步骤/命令。 SO 需要这样做才能重现错误。谢谢。

标签: r markdown r-markdown


【解决方案1】:

这是一个已知错误,已在上一个开发版本中修复。目前,从 github 安装应该可以解决问题:

devtools::install_github("juba/rmdformats")

【讨论】:

    猜你喜欢
    • 2021-09-12
    • 2018-05-20
    • 2019-04-23
    • 1970-01-01
    • 1970-01-01
    • 2014-11-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多