My attempt to knit an .Rmd file to PDF from RStudio has failed.
I would appreciate if someone could help me resolve the issue as detailed below.
Thanks,
Pradip Muhuri
*** Here is part of the RStudio (version 2022.02.3 Build 492)/R (version 4.2.0 (2022-04-22 ucrt) console.
output file:
R_pdf.knit.mdThe system cannot find the path specified.
! warning: kpathsea: configuration file texmf.cnf not found in these directories: C:/Users/pmuhuri/AppData/Roaming/TinyTeX/bin/win32;
Running the command C:\Users\pmuhuri\AppData\Roaming\TinyTeX\bin\win32\fmtutil-user.exe
! kpathsea: Running mktexfmt pdflatex.fmt
! The command name is C:\Users\pmuhuri\AppData\Roaming\TinyTeX\bin\win32\mktexfmt
Error: LaTeX failed to compile R_pdf.tex. See
https://yihui.org/tinytex/r/#debugging for debugging tips. See R_pdf.log for more info.
Execution halted
No LaTeX installation detected (LaTeX is required to create PDF output). You should install a LaTeX distribution for your platform:
https://www.latex-project.org/get/ If you are not sure, you may install TinyTeX in R: tinytex::install_tinytex()
Otherwise consider MiKTeX on Windows -
http://miktex.org MacTeX on macOS -
https://tug.org/mactex/ (NOTE: Download with Safari rather than Chrome _strongly_ recommended)
Linux: Use system package manager