ibrahim ozturk

Entrepreneur, Tech CTO, Software Developer, Electronics Engineer, Author

How to uninstall R and RStudio with all packages, settings and everything else on Windows?

Category : General

Once I have tried to uninstall R related sides, I realised that it is not straightforward unlike other programming engines. For that reason, I have posted the procedure on the stackoverflow website under the related questions. See the link: https://stackoverflow.com/questions/55204017/how-to-uninstall-r-and-rstudio-with-all-packages-settings-and-everything-else/61187094#61187094

I have further issues with the answers on the forums/internet. For that reason, I have extended the solution with further steps (which I experienced currently) as below:

  1. Uninstall R, RStudio and RTools from Windows “Programs and Features” menu.
  2. Delete everything in folders that was shown after running .libPaths() in R. In my case, it looks like:


    1 “C:/Users/%USERNAME%/Documents/R/win-library/3.6” “C:/Program Files/R/R-3.6.3/library”

Therefore, I have manually deleted following files and folders (they remain there after full uninstallation of R, RStudio and RTools) as well:

- C:\Users\%USERNAME%\Documents\R\
- C:\Users\%USERNAME%\Documents\.Rhistory
- Various files and folders under C:\Users\%USERNAME%\AppData\Local\Temp related with R and RStudio sessions.
  1. Delete everything in C:\Users\%USERNAME%\AppData\Local\RStudio-Desktop
  2. Delete everything in C:\Users\%USERNAME%\AppData\Local\rstudio

Then you can move on the re-installation side for R (after suggested reboot of Windows) as below. In order (please): Download R for Windows and RStudio Desktop. (If you need, download also RTools)

  • Install R
  • Install RTools (if you need)
  • Install RStudio.


Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir


error: Content is protected !!