使用rmarkdown::render编译文档时偶现Pandoc Error 10求助
偶发的rmarkdown::render编译失败问题求助
我使用rmarkdown::render编译特定文档时,遇到了偶发失败的情况,失败概率约1/3,报错信息如下:
pandoc document conversion failed with error 10
通过添加--verbose参数查看调试信息,发现每次失败前程序都在从fonts.gstatic.com获取OpenSans字体(该文档共需获取24个字体文件),但未给出具体错误细节。查阅Pandoc官方错误码定义,找不到Error 10的相关说明。
已知有类似问题也与fonts.gstatic.com相关,我已将成功/失败日志及执行的Pandoc命令上传至Gist,恳请协助排查问题原因及解决方法。
附执行的Pandoc命令:
/opt/homebrew/bin/pandoc +RTS -K512m -RTS index.knit.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output index.html --lua-filter /Users/saprm3/Library/Caches/org.R-project.R/R/renv/library/flexTeaching3.api-91d1a6f0/R-4.2/aarch64-apple-darwin20/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /Users/saprm3/Library/Caches/org.R-project.R/R/renv/library/flexTeaching3.api-91d1a6f0/R-4.2/aarch64-apple-darwin20/rmarkdown/rmarkdown/lua/latex-div.lua --embed-resources --standalone --verbose --variable bs3=TRUE --section-divs --template /Users/saprm3/Library/Caches/org.R-project.R/R/renv/library/flexTeaching3.api-91d1a6f0/R-4.2/aarch64-apple-darwin20/rmarkdown/rmd/h/default.html --no-highlight --variable highlightjs=1 --variable theme=bootstrap --mathjax --variable 'mathjax-url=https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' --include-in-header /var/folders/59/r7wjy0gn6yv59w19694x5gy80000gp/T//RtmpNWnHRc/rmarkdown-str16c6234aa443c.html
内容的提问来源于stack exchange,提问作者richarddmorey
相关产品推荐
相关产品推荐

