output file: test.knit.md
! pdflatex: warning: running with administrator privileges
! Sorry, but C:\Users\jjw11\AppData\Local\Programs\MIKTEX~1.9\miktex\bin\x64\pdflatex.exe did not succeed.
! The log file hopefully contains the information to get MiKTeX going again:
! C:\Users\jjw11\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log
Error: Failed to compile test.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See test.log for more info.
Execution halted
我在尝试使用 r markdown 生成 pdf 文件时收到此错误消息。
我该如何解决这个问题?我使用 install.packages("tinytex") 安装了 tinytex
我还尝试了 tinytex::reinstall_tinytex()。但我收到了这个错误信息
tinytex::reinstall_tinytex()
Error in system2("tlmgr", args, ...) : '"tlmgr"' not found
In addition: Warning message:
In tlmgr(c("info", "--list", "--only-installed", "--data", field, :
TeX Live does not seem to be installed. See https://yihui.name/tinytex/.
我使用“tinytex::install_tinytex()”安装了 tinytex。
当我使用“tinytex::install_tinytex()”安装 tinytex 时,我收到警告,这意味着已经安装了其他 Latex 发行版。
在使用“tinytex::install_tinytex()”安装 tinytex 后,我尝试生成 pdf 文件。
但是这次我收到了这个错误信息。
output file: test.knit.md
"C:/PROGRA~1/Pandoc/pandoc" +RTS -K512m -RTS test.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output test.tex --template "C:\PROGRA~1\R\R-35~1.3\library\RMARKD~1\rmd\latex\DEFAUL~3.TEX" --highlight-style tango --pdf-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in" --variable "compact-title:yes"
! Package inputenc Error: Unicode character ??(U+B144)
(inputenc) not set up for use with LaTeX.
Try other LaTeX engines instead (e.g., xelatex) if you are using pdflatex. For R Markdown users, see https://bookdown.org/yihui/rmarkdown/pdf-document.html
Error: Failed to compile test.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See test.log for more info.
In addition: Warning message:
In grepl("==> Fatal error occurred", x[i], fixed = TRUE) :
input string 1 is invalid in this locale
Execution halted
我必须卸载其他 Latex 发行版吗?
那么,如何卸载其他 Latex 发行版?