我正在尝试Rnw
使用 knitr 的“编译 pdf”功能在 RStudio 中编译一个简单的文件。但它给了我一个错误。
这是我所拥有的Vorlage.Rnw
:
\begin{document}
Hello World
\end{document}
错误信息:
Running pdflatex.exe on Vorlage.tex...failed
Error running C:/Users/Kris/AppData/Local/Programs/MiKTeX/miktex/bin/x64/pdflatex.exe (exit code 3)
我已经检查过是否pdflatex.exe
缺失,但它确实在它应该在的文件夹中。包tinytex
也已安装但没有任何变化。
以下是我开始诊断时来自 MiKTeX 的操作系统信息:
ReportDate: 2021-04-09 11:55:16
CurrentVersion: 21.3
SetupDate: 2021-04-09 11:21:00
SetupVersion: 21.2
Configuration: Regular
GitInfo: ab8ebca / 2021-03-19 10:22:46
OS: Windows 7 Professional, 64-bit, Service Pack 1, build 7601
SharedSetup: no
LinkTargetDirectory: C:\Users\Kris\AppData\Local\Programs\MiKTeX\miktex\bin\x64
PathOkay: yes
LastUpdateCheck: 2021-04-09 11:21:53
LastUpdate: 2021-04-09 11:22:28
LastUpdateDb: 2021-04-09 11:21:51
SystemAdmin: yes
RootPrivileges: no
AdminMode: no
Root0: C:\Users\Kris\AppData\Roaming\MiKTeX
Root1: C:\Users\Kris\AppData\Local\MiKTeX
Root2: C:\Users\Kris\AppData\Local\Programs\MiKTeX
Root3: C:\ProgramData\MiKTeX
Root4: C:\Program Files\MiKTeX
UserInstall: C:\Users\Kris\AppData\Local\Programs\MiKTeX
UserConfig: C:\Users\Kris\AppData\Roaming\MiKTeX
UserData: C:\Users\Kris\AppData\Local\MiKTeX
CommonInstall: C:\Program Files\MiKTeX
CommonConfig: C:\ProgramData\MiKTeX
CommonData: C:\ProgramData\MiKTeX
非常感谢您的帮助;我不知道该如何解决这个问题