There are multiple locations on the internet which host the latest version of ‘R’ code. Navigate to the CRAN website (https://cran.r-project.org/mirrors.html) and choose a ‘mirror’ appropriate to your geographic location. Follow these steps:
This will download an executable file on to your hard-drive (e.g. R-3.4.0-win.exe)
Navigate to the file location on your computer (e.g. by default it may appear in the user downloads directory C:\Users\username\Downloads). In your file manager right click the file and select ‘Run as Administrator’. Press ‘Yes’ if prompted to allow the file to run and install ‘R’.
(* Note if you already have an earlier version of ‘R’ on your computer it would be advisable to uninstall it first before loading the latest version. Also move any existing R libraries (which can be found in a sub-directory entitled ‘library’ e.g. C:\Program Files\R\R-x.y.z\library) to a temporary location. After the new version of ‘R’ has been installed move the libraries from their temporary location to the new sub-directory location (e.g. C:\Program Files\R\R-3.4.0\library)).
R Studio is an Integrated Development Environment (IDE) that is dependent on ‘R’ code. Before attempting to install the ‘R Studio’ application it is important to ensure you have ‘R’ installed (follow the instructions above R).
Visit the ‘R Studio’ website (https://www.rstudio.com/products/rstudio/download2/) and locate the section headed ‘Installers for Supported Platforms’. Select the appropriate link to download the latest version to your computer (e.g. RStudio 1.0.143 - Windows Vista/7/8/10).
Use the file manager to navigate to the location of the downloaded file. Right click the file and select ‘Run as Administrator’ and follow the steps shown in the Setup Wizard.