New install won't build book

I have a book project which builds correctly on another machine. Installed R, RStudio, and RTools on new laptop. It will not build the book, but complains that xelatex is not found. I did install tinytex.

Running as admin.

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

Have you also installed the TinyTex LaTeX distribution?


I have now, and that solved the problem, thanks!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.