In this section, the aim is to have everyone setup with R, RStudio, and RMarkdown.
- Duration 15 minutes
- How do I install R?
- How do I install rmarkdown?
- How do I install LaTeX in a sane way?
3.3 Software Setup
To ensure you are up to date, run the following script to install the packages.
3.5 A note on PDF
rmarkdown documents can be compiled to PDF, which is a great feature. In order to convert the documents to PDF, they use a software called LaTeX () (pronounced la-tek or lay-tek).
If you get the following error, this is good! As it means that TeX has already been installed:
Error: Detected an existing tlmgr at /usr/local/bin/tlmgr. It seems TeX Live has been installed (check tinytex::tinytex_root()). You have to uninstall it, or use install_tinytex(force = TRUE) if you are sure TinyTeX can override it (e.g., you are a PATH expert or installed TinyTeX previously).
3.5.1 Problem solving with LaTeX
If you have any problems with installing
tinytex, I recommend you check out the tinytex FAQ page.