r - Rstudio pdflatex.exe 没有成功
问题描述
我目前正在使用 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,但问题仍然存在。我该如何解决这个问题?
解决方案
使用新安装的,未安装将文件编织为 PDFMiKTeX
所需的许多样式文件。RMarkdown
要允许 MiKTeX 即时安装它们,请打开 MiKTeX 控制台并转到Settings
选项卡。
有一个选项说You can choose whether missing packages are to be installed automatically (on-the-fly)
。确保将其设置为Always以允许安装必要的样式文件。
推荐阅读
- java - 如何回到java中的特定while循环
- rest - 身份验证服务器微服务,我应该为不同的用户功能使用不同的服务吗
- ios - 是否可以在 Mac Catalyst 中使用全屏?
- eclipse - 如何将新工作区与位桶中的现有远程存储库合并
- python - 在 Python 中将数组大小调整为另一个形状
- azure - 更改所有磁贴的 Azure 仪表板图表和全局参数的颜色
- oracle - 在oracle的过程中传递值时如何创建表?
- python - 如何在 Django 的一个模型中保存两个表单?
- c++ - 我可以帮助我找到这个函数的输出吗?(C++)
- google-apps-script - 根据标准显示棋盘游戏匹配的脚本