Over the past week, I worked extremely hard on a small project that I had wished to work on for several years. It is called TinyTeX. The two basic goals of this project are:
-
Provide a lightweight version of TeX Live that is easy to maintain (one command to rule them all).
-
Make it hassle-free for R users to compile LaTeX documents, e.g., you do not need to worry how many times you should run
pdflatex. In particular, R Markdown users should no longer worry about missing LaTeX packages, because they can be automatically installed in most cases.
I think TeX Live is pretty awesome (in particular, it is cross-platform), and it is just too big. I want to reduce its size, and highlight the useful parts of the TeX Live Manager (tlmgr).
Similarly, the LaTeX package latexmk is also awesome, but it is written in Perl. For Unix users, this is probably not a big issue (chances are you have already got Perl installed). For Windows users, it can be very inconvenient and confusing. The R companion package tinytex contains functions to emulate latexmk (to compile a LaTeX document for a correct number of times). They are written in R, so R users don’t need to install latexmk or Perl.
You can find everything you need from https://github.com/rstudio/tinytex (full source code and the link to documentation). I hope TinyTeX and the R package can reduce your pain of working with a LaTeX distribution.
I only spent one week on this little project, but I think it is pretty much done. I’ll truly appreciate it if you can be brave enough to test it. For R Markdown users, please install a special branch of the rmarkdown package to test your PDF output:
# before installing TinyTeX, it will be great if you can uninstall
# your existing LaTeX distribution
remotes::install_github(c("rstudio/tinytex", "rstudio/rmarkdown"))
tinytex::install_tinytex()
P.S. I think you will appreciate TinyTeX when you try to uninstall your existing LaTeX distribution: only MiKTeX on Windows is easy to uninstall; for other LaTeX distributions like TeX Live and MacTeX, you may do a Google search and cry a little when you realize what you need to do to completely get rid of them. By comparison, you only need two short commands to uninstall TinyTeX, and it will be completely gone.
P.P.S. When in doubt, please read the documentation. If you run into problems that you don’t know how to solve, or have any feedback, please feel free to file GitHub issues.
Donate
As a freelancer (currently working as a contractor) and a dad of three kids, I truly appreciate your donation to support my writing and open-source software development! Your contribution helps me cope with financial uncertainty better, so I can spend more time on producing high-quality content and software. You can make a donation through methods below.
-
Venmo:
@yihui_xie, or Zelle:xie@yihui.name -
Paypal
-
If you have a Paypal account, you can follow the link https://paypal.me/YihuiXie or find me on Paypal via my email
xie@yihui.name. Please choose the payment type as “Family and Friends” (instead of “Goods and Services”) to avoid extra fees. -
If you don’t have Paypal, you may donate through this link via your debit or credit card. Paypal will charge a fee on my side.
-
-
Other ways:
WeChat Pay (微信支付:谢益辉) Alipay (支付宝:谢益辉) 

When sending money, please be sure to add a note “gift” or “donation” if possible, so it won’t be treated as my taxable income but a genuine gift. Needless to say, donation is completely voluntary and I appreciate any amount you can give.
Please feel free to email me if you prefer a different way to give. Thank you very much!
I’ll give back a significant portion of the donations to the open-source community and charities. For the record, I received about $30,000 in total (before tax) in 2024-25, and gave back about $15,000 (after tax).