R and RStudio are separate downloads and installations
R is the underlying statistical computing environment
RStudio is a graphical integrated development environment (IDE)
Go to the CRAN webpage, select your OS and follow the instructions.
Go to the download page. Select, download and install the file corresponding to your OS.
Launch Rstudio and execute the following commands in the console (at least these R packages will be needed)
install.packages("tidyverse")
install.packages("FactoMineR") # Factor analysis
install.packages("factoextra") # Fancy plotting of FactoMineR outputs
install.packages("corrplot") # Fancy plotting of matrices
install.packages("GGally") # Easy-to-use ggplot2 extensions
install.packages("reticulate") # Call Python from R
You may need Rtools (dedicated page) and git (dedicated page)
You may need XCode: visit the dedicated page, download the Mandatory tools and install them on your computer
If installation of a package fails in Rstudio, just READ THE MESSAGES: you may be asked to install some missing system libraries with, e.g.,
sudo apt-get install lib-missing