[Tex/LaTex] Installing a Subset of MiKTeX Packages to use RStudio knitr PDF Compiler

knitrmiktexpackagesrstudio

I would like to compile an R Markdown document using the knitr package in Rstudio on a Windows 7 OS using MiKTeX. RStudio recommends the complete installation of MiKTeX, this encompasses over 3,167 packages as of today. Installing all of the packages is not an option that will work for me. I would like to find a subset of packages which will support the use of knitr in RStudio for the compilation of PDFs. All documents will be in English and won't include mathematical notation. They will feature figures created using the ggplot2 package.

Best Answer

The basic MikTeX installation works fine, you don't need to install the whole lot. When you run knitr for the first time, RStudio will download and install a handful of additional packages it needs. After that you only have to add more packages if your documents contain special features.

Related Question