I was trying to look out for ways to generate a document with R code and it’s output in PDF format in R Studio. However, I faced issues in knit PDF output. This is a steps which I followed which got me to the working example of generating beautiful LATEX Pdf.
- Start miktex console.
- Click on “settings”.
- Then choose “Always install missing packages on the fly”
- Close the console.
- Rebuild the RmarkDown file.