gpt4 book ai didi

Rstudio pdflatex.exe 没有成功

转载 作者:行者123 更新时间:2023-12-05 08:48:13 25 4
gpt4 key购买 nike

我目前正在使用 Rstudio 和 R markdown 创建 pdf。但是,每次我尝试编织这些错误消息时都会出现:

! Sorry, but C:\Users\AP\AppData\Local\Programs\MiKTeX\miktex\bin\x64\pdflatex.exe did not succeed.

! The log file hopefully contains the information to get MiKTeX going again:

! C:\Users\AP\AppData\Local\MiKTeX\miktex\log\pdflatex.log

Error: LaTeX failed to compile new-report.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See c2089682-report.log for more info.
In addition: Warning message:
In has_crop_tools() :
Tool(s) not installed or not in PATH: ghostcript
-> As a result, figure cropping will be disabled.
Execution halted

我尝试卸载/重新安装 MiKTex 并重新启动 Rstudio,但问题仍然存在。我该如何解决这个问题?

最佳答案

随着 MiKTeX 的新安装,许多将 RMarkdown 文件编织成 PDF 所需的样式文件没有安装。要允许 MiKTeX 即时安装它们,请打开 MiKTeX 控制台并转到 Settings 选项卡。

有一个选项显示您可以选择是否自动(即时)安装缺少的包。确保将其设置为 Always 以允许安装必要的样式文件。

关于Rstudio pdflatex.exe 没有成功,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66305985/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com