This is something you have to do only once.
-
to install
R
go to this webpage, download it and follow the instructions click -
Installing
R-studio
One of the the best way to develop R code in your computer is using R-studio, it is a nice interface that help you a lot in the process of writing the code, interacting with R, and so many more things...