【问题标题】:RMarkdown: Not able to knit to pdfRMarkdown:无法编织到 pdf
【发布时间】:2021-09-15 19:45:49
【问题描述】:

我已经使用 Rmarkdown 几个月了,但突然我不能再编织到 pdf,我安装了最新版本的 rstudio 和 tinytex,但它不是建筑.pdf我还能做什么?

以下是错误信息:

! Package inputenc Error: Unicode character ^^N (U+000E)
(inputenc)                not set up for use with LaTeX.


Try other LaTeX engines instead (e.g., xelatex) if you are using pdflatex. See https://bookdown.org/yihui/rmarkdown-cookbook/latex-unicode.html
Error: LaTeX failed to compile Introduction-to-R-for-statistical-computing.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See Introduction-to-R-for-statistical-computing.log for more info.
Execution halted

【问题讨论】:

  • LaTeX 中的非转义字符串存在很多问题,您会在TeX - LaTeX 找到类似的错误(例如,here)。但是,无论是在这里还是那里,如果没有可重现的问题(即仍然会产生此错误的 spartan 输入 Rmarkdown 文档),我不知道我们能否真正提供帮助。

标签: r r-markdown


【解决方案1】:

我试了几次,今天从Why "Knit to pdf" in RMarkdown throws error?看到了这个tinytex::reinstall_tinytex()。 它非常适合我。 pdf 是用我用 tex 编写的所有方程式构建的。文档也用 word 和所有的统计模型编织而成。非常感谢。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-03-24
    • 2017-02-26
    • 2019-11-03
    • 1970-01-01
    • 2021-02-07
    • 2021-02-11
    • 2023-04-07
    相关资源
    最近更新 更多