Error starting R Studio on Windows

Hello ,
I'm installing the application on the system for the first time and I have been facing this error.
I would greatly appreciate any help on the matter.
I uninstalled and installed R studio and R a few times, but it has not helped.
The R GUI launches out okay, but R studio is not launching.
It throws this error

Error Starting R

The R session failed to start.

RSTUDIO VERSION

RStudio 2022.12.0+353 "Elsbeth Geranium " (7d165dcf, 2022-12-03) for Windows [No error available] [No errors emitted]

OUTPUT

[No output emitted] C:/Users/ratee/AppData/Local/RStudio/log/rsession-ratee.log 2023-01-28T15:47:28.358518Z [rsession-ratee] ERROR Unable to retrieve user home path. HRESULT: 0x80070003; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::core::system::userSettingsPath(const class rstudio::core::FilePath &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,bool) src/cpp/core/system/Win32System.cpp:341 2023-01-28T15:47:28.558871Z [rsession-ratee] ERROR system error 10013 (An attempt was made to access a socket in a way forbidden by its access permissions); OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::http::initTcpIpAcceptor(class rstudio::core::http::SocketAcceptorService<class rstudio_boost::asio::ip::tcp> &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) C:\Users\jenkins\workspace\ide\open-source-pipeline\elsbeth-geranium\src\cpp\core\include\core/http/TcpIpSocketUtils.hpp:145; LOGGED FROM: int __cdecl main(int,char *const []) C:\Users\jenkins\workspace\ide\open-source-pipeline\elsbeth-geranium\src\cpp\session\SessionMain.cpp:2267 2023-01-28T15:47:28.558871Z [rsession-ratee] ERROR system error 10013 (An attempt was made to access a socket in a way forbidden by its access permissions); OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::http::initTcpIpAcceptor(class rstudio::core::http::SocketAcceptorService<class rstudio_boost::asio::ip::tcp> &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) C:\Users\jenkins\workspace\ide\open-source-pipeline\elsbeth-geranium\src\cpp\core\include\core/http/TcpIpSocketUtils.hpp:145; LOGGED FROM: int __cdecl main(int,char *const []) C:\Users\jenkins\workspace\ide\open-source-pipeline\elsbeth-geranium\src\cpp\session\SessionMain.cpp:2267

Hello ,
I'm having the same issue.
I would greatly appreciate any help on the matter.
I uninstalled and installed R studio and R a few times, but it has not helped.
The R program itself launches out okay, the GUI is good, but R studio is not launching.
It throws this error

Error Starting R

The R session failed to start.

RSTUDIO VERSION

RStudio 2022.12.0+353 "Elsbeth Geranium " (7d165dcf, 2022-12-03) for Windows [No error available] [No errors emitted]

OUTPUT

[No output emitted] C:/Users/ratee/AppData/Local/RStudio/log/rsession-ratee.log 2023-01-28T15:47:28.358518Z [rsession-ratee] ERROR Unable to retrieve user home path. HRESULT: 0x80070003; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::core::system::userSettingsPath(const class rstudio::core::FilePath &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,bool) src/cpp/core/system/Win32System.cpp:341 2023-01-28T15:47:28.558871Z [rsession-ratee] ERROR system error 10013 (An attempt was made to access a socket in a way forbidden by its access permissions); OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::http::initTcpIpAcceptor(class rstudio::core::http::SocketAcceptorService<class rstudio_boost::asio::ip::tcp> &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) C:\Users\jenkins\workspace\ide\open-source-pipeline\elsbeth-geranium\src\cpp\core\include\core/http/TcpIpSocketUtils.hpp:145; LOGGED FROM: int __cdecl main(int,char *const []) C:\Users\jenkins\workspace\ide\open-source-pipeline\elsbeth-geranium\src\cpp\session\SessionMain.cpp:2267 2023-01-28T15:47:28.558871Z [rsession-ratee] ERROR system error 10013 (An attempt was made to access a socket in a way forbidden by its access permissions); OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::http::initTcpIpAcceptor(class rstudio::core::http::SocketAcceptorService<class rstudio_boost::asio::ip::tcp> &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) C:\Users\jenkins\workspace\ide\open-source-pipeline\elsbeth-geranium\src\cpp\core\include\core/http/TcpIpSocketUtils.hpp:145; LOGGED FROM: int __cdecl main(int,char *const []) C:\Users\jenkins\workspace\ide\open-source-pipeline\elsbeth-geranium\src\cpp\session\SessionMain.cpp:2267

Well, then maybe follow the same advice?

Hello, thank you for responding.
I tried the latest build as well - the issue is persistent.

Have you tried resetting the RStudio's state? Notice this is not the same as uninstalling/reinstalling the software

Hello, yes - I did a full reset by deleting the folders found when I searched for

%localappdata%\RStudio

Please indicate if this is not the right approach. Appreciate your help!

Delete this one as well

%appdata%\RStudio

You can also try manually selecting your R executable in case it is not on the PATH. You can change it by holding the Ctrl key while opening RStudio, then you should see this menu that allows you to select the R executable.

I deleted that file as well.
Also, tried the Ctrl + Selecting the right version of the executable.

Does your Windows user name contain non-ASCII characters? This causes problems very frequently on Windows.

Also, have you tried white listing RStudio on the Windows firewall and/or antivirus? Or maybe disable the firewall and real time protection temporarily for testing?

This topic was automatically closed 21 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.