Error Opening RStudio

Hello there,

My RStudio is not able to open, I was wondering if anyone will be able to help me fix this issue.

R Session Startup Failure Report

RStudio Version

RStudio 2022.12.0+353 "Elsbeth Geranium " (7d165dcf, 2022-12-03) for macOS

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36

Error message

The R session had a fatal error.

2023-01-20T18:38:59.889776Z [rsession-macbookpro] ERROR r error 4 (Error : .onLoad failed in loadNamespace() for 'utils', details:||| call: switch(os, Linux = if (file.exists("/etc/os-release")) {||| error: EXPR must be a length 1 vector|||) [errormsg: Error : .onLoad failed in loadNamespace() for 'utils', details:||| call: switch(os, Linux = if (file.exists("/etc/os-release")) {||| error: EXPR must be a length 1 vector|||]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const std::string &, SEXP *, sexp::Protect *, rstudio::r::exec::EvalFlags) src/cpp/r/RExec.cpp:375

2023-01-20T18:38:59.889776Z [rsession-macbookpro] ERROR r error 4 (Error : .onLoad failed in loadNamespace() for 'utils', details:||| call: switch(os, Linux = if (file.exists("/etc/os-release")) {||| error: EXPR must be a length 1 vector|||) [errormsg: Error : .onLoad failed in loadNamespace() for 'utils', details:||| call: switch(os, Linux = if (file.exists("/etc/os-release")) {||| error: EXPR must be a length 1 vector|||]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const std::string &, SEXP *, sexp::Protect *, rstudio::r::exec::EvalFlags) src/cpp/r/RExec.cpp:375

Process Output

The R session exited with code 2.

Error output:

2023-01-20T18:38:59.889776Z [rsession-macbookpro] ERROR r error 4 (Error : .onLoad failed in loadNamespace() for 'utils', details:|||  call: switch(os, Linux = if (file.exists("/etc/os-release")) {|||  error: EXPR must be a length 1 vector|||) [errormsg: Error : .onLoad failed in loadNamespace() for 'utils', details:|||  call: switch(os, Linux = if (file.exists("/etc/os-release")) {|||  error: EXPR must be a length 1 vector|||]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const std::string &, SEXP *, sexp::Protect *, rstudio::r::exec::EvalFlags) src/cpp/r/RExec.cpp:375


Standard output:

[No output emitted]

Logs

/Users/macbookpro/.local/share/rstudio/log/rsession-macbookpro.log

]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const std::string &, SEXP *, sexp::Protect *, rstudio::r::exec::EvalFlags) src/cpp/r/RExec.cpp:375; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) src/cpp/r/session/RStdCallbacks.cpp:299
2023-01-20T18:38:59.889890Z [rsession-macbookpro] ERROR R SUICIDE: 2023-01-20T18:38:59.889776Z [rsession-macbookpro] ERROR r error 4 (Error : .onLoad failed in loadNamespace() for 'utils', details:|||  call: switch(os, Linux = if (file.exists("/etc/os-release")) {|||  error: EXPR must be a length 1 vector|||) [errormsg: Error : .onLoad failed in loadNamespace() for 'utils', details:|||  call: switch(os, Linux = if (file.exists("/etc/os-release")) {|||  error: EXPR must be a length 1 vector|||]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const std::string &, SEXP *, sexp::Protect *, rstudio::r::exec::EvalFlags) src/cpp/r/RExec.cpp:375; LOGGED FROM: void (anonymous namespace)::rSuicide(const std::string &) src/cpp/session/SessionMain.cpp:1241
2023-01-20T18:38:59.889890Z [rsession-macbookpro] ERROR R SUICIDE: 2023-01-20T18:38:59.889776Z [rsession-macbookpro] ERROR r error 4 (Error : .onLoad failed in loadNamespace() for 'utils', details:|||  call: switch(os, Linux = if (file.exists("/etc/os-release")) {|||  error: EXPR must be a length 1 vector|||) [errormsg: Error : .onLoad failed in loadNamespace() for 'utils', details:|||  call: switch(os, Linux = if (file.exists("/etc/os-release")) {|||  error: EXPR must be a length 1 vector|||]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const std::string &, SEXP *, sexp::Protect *, rstudio::r::exec::EvalFlags) src/cpp/r/RExec.cpp:375; LOGGED FROM: void (anonymous namespace)::rSuicide(const std::string &) src/cpp/session/SessionMain.cpp:1241

Lot of problems with Elspeth on Ventura arm64 (maybe x86_64, too). I don’t have this one and have only been able to fix some of the others. Next, I’m going to try a development version.

Interesting, please keep me posted on how that goes! For now, are there any other versions I should download and see if that works?

Will, do. Haven't had luck with downversioning, though.

I tried the latest daily release, and still no joy.

RStudio 2022.12.1+360 "Elsbeth Geranium" Release (974ce9490cc3e0e75855dbf216047027498ccc56, 2023-01-18) for macOS
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.1+360 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36

See my workaround.

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.