i just uninstall my miktex, then install tinytex.
however, i can not output pdf, especially for chinese.
> xfun::session_info('tinytex')
R version 4.0.1 (2020-06-06)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 16299), RStudio 1.3.959
Locale:
LC_COLLATE=Chinese (Simplified)_China.936
LC_CTYPE=Chinese (Simplified)_China.936
LC_MONETARY=Chinese (Simplified)_China.936
LC_NUMERIC=C
LC_TIME=Chinese (Simplified)_China.936
Package version:
graphics_4.0.1 grDevices_4.0.1 stats_4.0.1 tinytex_0.42
tools_4.0.1 utils_4.0.1 xfun_0.33
LaTeX version used:
TeX Live 2022 (TinyTeX) with tlmgr 2022-04-18
tinytex::tinytex_root()
[1] "C:\\Users\\AIERXUAN\\AppData\\Roaming\\TinyTeX"
a <- Sys.getenv('PATH')
library(tidyverse)
str_detect(a,"Tiny")
TRUE
this is a waring
> tinytex::tlmgr_path()
Warning: conflicting [pdf]tex program found on the system path in C:\Users\AIERXUAN\AppData\Roaming\TinyTeX\bin\win32; not fixable in user mode.
however, it can not work
tinytex::pdflatex('test.tex')
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
error: LaTeX failed to compile test.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips.