I am unable to start up an Rstudio (v 1.4.1106) instance of any kind on my Mac (10.15.7). I recently removed R 4.0.5 from my system using both options 1 and 2 from this guide - How Can I Uninstall R for Mac, R Console Removal Tips on macOS.
I then installed v3.6.3 using a standard installation (.pkg file). Since this reinstallation, I am getting the following error from Rstudio:
The R session process exited with code **2** .
11 May 2021 14:20:21 [rsession-username] ERROR system error 13 (Permission denied) [path: /Users/username/.local/share/rstudio/sources/s-A19BAE3B, target-dir: ]; OCCURRED AT rstudio::core::Error rstudio::core::FilePath::createDirectory(const std::string &) const src/cpp/shared_core/FilePath.cpp:809
## RECENT LOG
*/Users/username/.local/share/rstudio/log/rsession-username.log* `User-Agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36
10 May 2021 17:53:09 [rsession-username] ERROR system error 41 (Protocol wrong type for socket) [request-uri: /grid_data]; OCCURRED AT virtual void rstudio::session::HttpConnectionImpl<rstudio_boost::asio::ip::tcp>::sendResponse(const core::http::Response &) [ProtocolType = rstudio_boost::asio::ip::tcp] src/cpp/session/http/SessionPosixHttpConnectionListener.cpp:113; LOGGED FROM: virtual void rstudio::session::HttpConnectionImpl<rstudio_boost::asio::ip::tcp>::sendResponse(const core::http::Response &) [ProtocolType = rstudio_boost::asio::ip::tcp] src/cpp/session/http/SessionPosixHttpConnectionListener.cpp:118
10 May 2021 19:12:55 [rsession-krayaa] ERROR system error 2 (No such file or directory) [exe: /Library/Frameworks/R.framework/Resources/bin/R]; OCCURRED AT rstudio::core::Error rstudio::core::system::ChildProcess::run() src/cpp/core/system/PosixChildProcess.cpp:805; LOGGED FROM: rstudio::core::Error rstudio::core::system::ChildProcess::run() src/cpp/core/system/PosixChildProcess.cpp:807`
The suggested next steps are as follows:
R can fail to start up for many reasons. The following may help you resolve the problem:
Investigate any errors above.
Make sure that R starts up correctly outside RStudio (using RGui, R.app, or R in a terminal).
Fully uninstall all versions of R from your machine, and reinstall the version you wish to use with RStudio.
Remove startup customizations such as an .Rprofile file, if present.
I can rule out the latter 3 points as issues.
I have never had a permissions error before on my system, and there are no new firewalls. A fresh install of Rstudio did not solve the problem.
Any idea what may be the issue?