gpt4 book ai didi

r - 我将 R 更新到 3.5.0 版后,Miktex 没有成功

转载 作者:行者123 更新时间:2023-12-04 11:47:46 25 4
gpt4 key购买 nike

在我将 R 更新到 3.5.0 版本后,我无法从 Rstudio 启动我的 MikTex,

---
output:
pdf_document:
latex_engine: xelatex
includes:
in_header: header.tex
keep_tex: yes
---

以上是我在 Rmd 之前输入的代码,在编织之后,
Sorry, but D:\miktex\miktex\bin\x64\xelatex.exe did not succeed.

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

C:/Users/DELL/AppData/Local/MiKTeX/2.9/miktex/log/xelatex.log

xelatex.log 中显示的信息:
2018-04-29 10:06:17,482+0800 FATAL xelatex - Info: 
2018-04-29 10:06:17,482+0800 FATAL xelatex - Source: Libraries\MiKTeX\UI\Qt\mikuiqt.cpp
2018-04-29 10:06:17,482+0800 FATAL xelatex - Line: 45
2018-04-29 10:06:17,482+0800 INFO xelatex - finishing with exit code 1
2018-04-29 10:06:17,626+0800 INFO xelatex - starting with command line: D:\miktex\miktex\bin\x64\xelatex.exe -halt-on-error -interaction=batchmode 1.tex
2018-04-29 10:06:17,631+0800 INFO xelatex - allowing known shell commands
2018-04-29 10:06:17,632+0800 INFO xelatex - enabling input (output) from (to) processes
2018-04-29 10:06:17,812+0800 FATAL xelatex - GUI framework cannot be initialized.

在我尝试之后:

Sys.which("xelatex")


                                    xelatex 
"D:\\miktex\\miktex\\bin\\x64\\xelatex.exe"

Sys.setenv("PATH" = "D:\miktex\miktex\bin\x64\xelatex.exe" )



然后再次编织:
Warning messages:

1: In system2(..., stdout = FALSE, stderr = FALSE) : '"xelatex"' not found
2: In system2(...) : '"xelatex"' not found

No TeX installation detected (TeX is required to create PDF output). You should install a recommended TeX distribution for your platform:

Windows: MiKTeX (Complete) - http://miktex.org/2.9/setup
(NOTE: Be sure to download the Complete rather than Basic installation)

有人可以帮忙吗?谢谢。

最佳答案

mentioned ,您可以更改默认设置并让 MiKTeX 安装缺少的 LaTeX 包,而无需询问:

从 MiKTeX 控制台 → 设置 → “始终即时安装丢失的包”。

关于r - 我将 R 更新到 3.5.0 版后,Miktex 没有成功,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50082865/

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