1

I use RStudio and started writing Rmarkdown documents to knit them into HTML pages and PDFs.

I tried installing TexLive but it failed when the astounding number of packages filled my limited remaining storage space (several GB).

I was wondering if anyone knew of a fairly straightforward way to get a minimal LaTeX install that includes the main packages needed to knit PDFs without errors on a Debian-based system?

I currently use Ubuntu 14.04, with RStudio 1.1.383, R 3.4.4, rmarkdown 1.9 and knitr 1.19.

2

Yes, I made TinyTeX exactly for that purpose: https://yihui.name/tinytex/ It is minimal and should work well for converting R Markdown to PDF by default.

Since you are a Ubuntu user, make sure to read FAQ 9: https://yihui.name/tinytex/faq/

  • Worked like a charm! I didn't have to install any extra package, I just had to remove a character that gave me an error. Thank you! – stragu Apr 19 '18 at 23:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.