Trying to create pdf page using Quarto document in Rstudio with TinyTeX. I can get an HTML page but not pdf. When I try to render a pdf I get an error, "The system cannot find the path specified."
Suggestions for how to fix this, appreciated.
The steps I follow are below:
I open a new Quarto document in RStudio with the following entered in the "New Quarto Document" window:
- Title: TEST
- Author: Person
- HTML selected
- Engine: Knitr
- Editor: Use visual markdown editor selected
I select "Render" an get a HTML document. All is fine
If I change "format: html" to "format: pdf" in the YAML and then select render I get the following error:
running xelatex - 1 command xelatex not found, attempting install finding package for xelatex
1 package to install installing xelatex (1 of 1) ERROR: tlmgr returned a non zero status code The system cannot find the path specified.
I get the same error if I open a new Quarto document and select PDF instead of HTML.
In Rstudio, tinytex package is installed. All my packages are up to date. Running R version - 4.2.3 , RStudio version - 2023.03.0 Build 386, Windows 10
TinyTeX folder is located on my computer in C:\Users\XXXXX\AppData\Roaming\TinyTeX
On my computer there is a folder, C:\Users\XXXXX\AppData\Roaming\TinyTex\texmf-dist\tex\xelatex and the file xelatex.exe in C:\Users\XXXXX\AppData\Roaming\TinyTeX\bin\windows
There are several files with "tlmgr" in the filename on my computer including tlmgr.bat in C:\Users\XXXXX\AppData\Roaming\TinyTeX\bin\windows
In my path is listed "C:\Users\XXXXX\AppData\Roaming\TinyTeX\bin\windows"