Knitr preamble error results in “pandoc document conversion failed with error 43”

痞子三分冷 提交于 2019-12-05 04:12:19

You should show the YAML frontmatter of the R Markdown document. Guessing from my experience, the error was caused by

---
date: "14. Juni 2015"
---

Any number followed by a period (e.g. 14.) will be treated as an item in a numbered list. You need to either remove or escape the period . (by \\.) in the date field. The same issue has been reported before.

This error can also be form having a curly quote or certain other characters. I spent ages on this pandoc error 43 before realising it was a block of text I had copied over form word.

e.g. Bob’s vs bob's

Another way to create this error is from having 'æ', 'ø' or 'å' in the file name.

My screw-up that resulted in this error was forgetting to put dollar signs around some inline latex code. I did

\theta

Instead of

$\theta$
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!