New laptop. Installed latest R from fresh download. Installed latest RStudio from fresh download.
Installed the packages for tutorials, as well.
Opened existing project. Tried to build book. It fails because xelatex is not found. Tried to install xelatex, and get this:
Warning in install.packages :
package ‘xelatex’ is not available for this version of R
R version 4.2.2 (2022-10-31 ucrt) -- "Innocent and Trusting"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
RStudio 2022.12.0+353 "Elsbeth Geranium" Release (7d165dcfc1b6d300eb247738db2c7076234f6ef0, 2022-12-03) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36
No idea what to do now. Is xelatex no longer supported? Do I need to use a different package?
install.packages("tinytex")
Installing package into ‘C:/Users/w_mey/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/tinytex_0.43.zip'
Content type 'application/zip' length 135823 bytes (132 KB)
downloaded 132 KB
package ‘tinytex’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\w_mey\AppData\Local\Temp\Rtmpmyu2Lh\downloaded_packages
But on build, I get this:
Error: LaTeX failed to compile _main.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips.
In addition: Warning message:
In system2(..., stdout = if (use_file_stdout()) f1 else FALSE, stderr = f2) :
'"xelatex"' not found
Execution halted
Error: bookdown::render_book() failed to render the output format 'bookdown::pdf_book'.
Execution halted