Step 1. Install R
https://cran.rstudio.com/
Choose your operating system and follow the instructions.
Step 2. Install R Studio.
https://posit.co/download/rstudio-desktop/