Cannot load RStudio

I cannot load RStudio. When I click on the shortcut it will not open. I have had this issue for several months now. The only solution is to uninstall then reinstall both base R and RStudio then restart my laptop. RStudio will then work until the next time my laptop has to restart.

Things I have tried that don't work

  • Run as administrator
  • Check permissions (it has all of them)
  • Restart my PC
  • Try to run RStudio from the Start menu
  • Try to open R files directly
  • Check I have the most recent version (I do)

Any help will be greatly appreciated!

Hi @Jay_McCloskey, try to use this guide according with you local system.

R guide

After a laptop restart, does R work from a terminal/command line?

Hi Prubin, no it doesn't. I get the following error code - C:\Program Files\RStudio>
[36732:0415/] not connected

Just to be certain, that error message comes from running R (not RStudio)? The path points to RStudio.

Sorry, you're right. I think it is running, I get the following message -

C:\Users\jaymc>cd "C:\Program Files\R\R-4.3.3\bin"

C:\Program Files\R\R-4.3.3\bin>R.exe

R version 4.3.3 (2024-02-29 ucrt) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

Yes, that is the expected output. So the problem has to do with starting RStudio but does not extend to R.

The next thing to check is whether the culprit is the shortcut or RStudio itself. (I would guess the latter, but it's not a good idea to assume anything.) The next time the shortcut fails to start RStudio, try starting it from a command prompt. You may need to dig into C:\Program Files\RStudio to find the full path to it. If it starts, the problem is with the shortcut. If it doesn't start, the problem is with RStudio.

If you find yourself having to reinstall again, try reinstalling just RStudio but not R and see if RStudio starts. If so, it confirms that R is not part of the problem.

If reinstalling RStudio temporarily resolves the issue, there may be a compatibility or configuration problem with your laptop's settings.