[英]Pandoc exit code 7 conversion error to html document (using Rmarkdown, Flexdashboard &knitr in Dockerized environment)
我正在使用 Pandoc 将 Rmarkdown 文档转换为 html 文档。
rmarkdown::render('ReportTemp.Rmd', output_file = paste0('TestDocument', '_', filename_invoice, '.html'),
envir = new.env(parent = globalenv()),
run_pandoc = TRUE)
在 Rstudio 中本地运行时,这很好用。 但是当在 dockerized 设置中运行它时,编织部分似乎运行良好,但随后我收到了这个奇怪的错误消息。
output file: ReportTemp.knit.md
/usr/bin/pandoc +RTS -K512m -RTS ReportTemp.utf8.md --to html4 --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output Report_fake.html --email-obfuscation none --standalone --section-divs --template /usr/local/lib/R/site-library/flexdashboard/rmarkdown/templates/flex_dashboard/resources/default.html --variable 'theme:cosmo' --include-in-header /tmp/Rtmp95MPQt/rmarkdown-str179e2a9e3.html --mathjax --variable 'mathjax-url:ReportTemp_fake_files/mathjax-local/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --metadata pagetitle=DocssReportTemp.utf8.md --include-in-header /tmp/Rtmp95MPQt/file17545e146html --highlight-style pygments --include-before-body /tmp/Rtmp95MPQt/file1515f007c.html --include-after-body /tmp/Rtmp95MPQt/file15bd062c2.html
Error : pandoc document conversion failed with error 7
我在 pandoc 手册中找不到关于此退出代码 7 的任何内容。它似乎根本不存在。
它似乎生成了正确的 md.-format,但无法将其转换为 html 文档。
有谁知道这段代码以及发生了什么?
我个人认为这与 Rstudio 调用 pandoc 的方式以及 R-base 在About Pandoc & Rstudio上运行的平台有关
Rstudio 似乎在旧版本的 Pandoc (1.12.x) 中构建了一个版本。 这是否意味着较新版本的 pandoc (2.x) 不适用于 Rmarkdown 2.1.x?
在本地,在 Rstudio 我有
在我使用的泊坞窗图像中:
任何帮助将非常感激!
最后,它与我在 R 脚本开头声明/设置的环境变量有关。 仍然不确定它为什么调用退出代码 7(以及此代码的含义)。 但我很高兴它没有再发生。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.