2.1 Install R and RStudio/Posit
Follow the instructions and relevant links on the Posit/RStudio website to install both R and RStudio Desktop:
Installation instructions depend on the operating system installed on your computer.
The next table provides a summary of links to follow, depending on the operating system:
Opereating system | R | RStudio desktop |
---|---|---|
Windows | https://cran.rstudio.com/bin/windows/ | Windows 10/11 |
macOS | https://cran.rstudio.com/bin/macosx/ | macOS 11+ |
Linux (Debian) | https://cran.rstudio.com/bin/linux/debian | Ubuntu 20 / Debian 11 |
Linux (Ubuntu) | https://cran.rstudio.com/bin/linux/ubuntu | Ubuntu 20 / Debian 11, Ubuntu 22 |
Linux (Fedora / Redhat) | https://cran.rstudio.com/bin/linux/fedora | Fedora 19 / Red Hat 7, Fedora 34 / Red Hat 8, Fedora 36 / Red Hat 9 |
If you are using a Linux OS, you will need to install additional packages:
Debian, Ubuntu (DEB packages):
libcurl4-openssl-dev libssl-dev libxml2-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev
Fedora, CentOS, RHEL (RPM packages):
libxml2-devel libcurl-devel fontconfig-devel openssl-devel libjpeg-devel libtiff-devel libpng-devel
Guides for Linux package installation (you may need to contact your IT department for permissions):