New version: • How to Install RStudio
In newer versions of RStudio, there is a new format called Quarto that is much easier to use. There also no longer appears to be a need to install tinytex manually on newer versions.
---
OLD DESCRIPTION
Part two: • How to use RStudio
Use the links below to download the programs mentioned in the video:
R: https://cloud.r-project.org/
RStudio: https://rstudio.com/products/rstudio/...
Using LaTeX in RStudio used to require a separate program with a mind of its own, but in late 2017 the prolific statistician Yihui Xie created a package in R that essentially does everything automatically: TinyTeX.
TinyTeX should be installed from within RStudio by running the following commands:
install.packages("tinytex")
tinytex::install_tinytex()
Also see: https://yihui.org/tinytex/
Run into errors? You're probably not the first.
Try finding an answer on: https://stackoverflow.com/search?tab=...
Or check the list below of frequently encountered problems:
If you keep getting errors about "rJava": https://stackoverflow.com/a/7604469 & https://stackoverflow.com/q/30738974 (OSX users only)
If R cannot find installed packages: https://stackoverflow.com/q/19407092
If you keep getting "loadNamespace" errors: https://stackoverflow.com/a/19265356
If you cannot install packages at all, make sure you have administrator rights in every location where packages are written. You can find these by typing ".libPaths()" in the console (without quotation marks) and pressing enter.
Timestamps:
0:00 Introduction
0:37 Install R
1:59 Install RStudio
2:52 Install TinyTeX
4:31 Verify your installation
5:45 Troubleshooting errors
Watch video RStudio: Installation Guide (and Knit to PDF) [see description] online without registration, duration hours minute second in high quality. This video was added by user Biostatistics 19 August 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 9,203 once and liked it 54 people.