### Install TinyTeX using R package Source: https://github.com/rstudio/tinytex/blob/main/README.md This snippet demonstrates how to install the TinyTeX LaTeX distribution using the R companion package. It ensures that R Markdown users can seamlessly use LaTeX without manual installation of missing packages. ```R install.packages('tinytex') tinytex::install_tinytex() ``` -------------------------------- ### Install TinyTeX using Shell script Source: https://github.com/rstudio/tinytex/blob/main/README.md This snippet shows the command to install TinyTeX using a shell script, typically found in the 'tools' directory of the project. This method is useful for users who prefer direct script execution or are setting up environments outside of R. ```Shell sh tools/install-latex.sh ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.