Use [[RStudio]] to knit (`Ctrl + Shift + k`) an [[R Markdown]] file as HTML, PDF, or Word (.doc). RStudio uses the `knitr` package, which can be used from the command line if preferred. To knit to PDF you will need a version of TeX installed on your machine, such as [[MiKTeX]] for Windows. Alternatively, you can install the R package `tinytex` in the R Studio Console to knit R Markdown files. ```R install.packages("tinytex") tinytex:: install_tinytex() ``` You can change the appearance of HTML outputs by updating the YAML. ```R Markdown --- output: html_document: theme: spacelab --- ``` You can also pass your own CSS. The best way to use these themes for PDFs is to knit to HTML, open in the browser, and print to PDF in your browser. `xaringan` is used for creating presentations and supports themes.