Install R and RStudio on Windows 7, 8, and 10?

Download R from
2. Click on Download R for Windows. Click on base. Click on Download R 3.3.2 for Windows (or a newer version that appears).

  1. Install R. Leave all default settings in the installation options.

  2. Download RStudio Desktop for windows from RStudio Desktop - Posit (it should be called something like RStudio 1.0.136 — Windows Vista/7/8/10). Choose default installation options.

  3. Open RStudio. If you want to learn about how to use RStudio, you can see this linear regression tutorial. If you want to learn how to install packages, you can see this tutorial.

Please let me know if you have any questions! You can either leave a comment here, on youtube, or through Twitter!

Windows 10

I have been earnestly learning R and Rstudio from YouTube but now I have a very serious problem. I installed R4.3.1 on my 64 bit Windows 10 machine and when I try to run R I received the error “Fatal error: R-TempDir contains spaces”. When this happened, I tried several fixes suggested by others. For one, I tried the suggested fix to 1. Go to the search box next to the start button and type “environment”. 2. Click on the choice which says “Edit the system environment variables”. 3. Click the button that says “Environment Variables” near the bottom of the window. 4. Click “New” and enter TMPDIR for variable name and some suitable directory without spaces under variable value (I chose C:\Temp). That didn’t work so then I reinstalled in C:/R (ie a directory with no spaces). Well, that didn’t work so then (as suggested by AI) I named a file that contains the following text: TMP=C:/Temp TEMP=C:/Temp TMPDIR=C:/Temp, and saved it to the Desktop. When tried R again and that didn’t work, I put in the R.etc folder in R, rebooted and tried again. Again the same error. I have run out of ideas. Please help. Thanks

There might be useful info for you within this :

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.