First, you will need to download and install R. R can be downloaded at: https://cran.r-project.org/.
Next, you will need to download and install RStudio. You can download RStudio at:
https://posit.co/download/rstudio-desktop/#download.
Once both programs are installed, find RStudio on your computer and open it.