r studio installation


This is the error I am getting after installing R studio. [" R version 4.2.2 (2022-10-31)"] [Ubuntu 22]. Please help me to fix the issue.

R Session Startup Failure Report

RStudio Version

RStudio 2024.10.0-daily+209 "Kousa Dogwood " (c49fc98d, 2024-09-21) for Ubuntu Jammy

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2024.10.0-daily+209 Chrome/126.0.6478.234 Electron/31.5.0 Safari/537.36

Error message

The R session had a fatal error.

2024-09-23T09:30:26.351568Z [rsession-niab] ERROR r error 4 (Error in dyn.load(file, DLLpath = DLLpath, ...) : ||| unable to load shared object '/usr/local/lib/R/library/utils/libs/utils.so':||| /usr/local/lib/R/library/utils/libs/utils.so: undefined symbol: R_maphash|||) [errormsg: Error in dyn.load(file, DLLpath = DLLpath, ...) : ||| unable to load shared object '/usr/local/lib/R/library/utils/libs/utils.so':||| /usr/local/lib/R/library/utils/libs/utils.so: undefined symbol: R_maphash|||]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const string&, SEXPREC**, rstudio::r::sexp::Protect*, rstudio::r::exec::EvalFlags) src/cpp/r/RExec.cpp:388

2024-09-23T09:30:26.351568Z [rsession-niab] ERROR r error 4 (Error in dyn.load(file, DLLpath = DLLpath, ...) : ||| unable to load shared object '/usr/local/lib/R/library/utils/libs/utils.so':||| /usr/local/lib/R/library/utils/libs/utils.so: undefined symbol: R_maphash|||) [errormsg: Error in dyn.load(file, DLLpath = DLLpath, ...) : ||| unable to load shared object '/usr/local/lib/R/library/utils/libs/utils.so':||| /usr/local/lib/R/library/utils/libs/utils.so: undefined symbol: R_maphash|||]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const string&, SEXPREC**, rstudio::r::sexp::Protect*, rstudio::r::exec::EvalFlags) src/cpp/r/RExec.cpp:388

Process Output

The R session exited with code 2.

Error output:

2024-09-23T09:30:26.351568Z [rsession-niab] ERROR r error 4 (Error in dyn.load(file, DLLpath = DLLpath, ...) : |||  unable to load shared object '/usr/local/lib/R/library/utils/libs/utils.so':|||  /usr/local/lib/R/library/utils/libs/utils.so: undefined symbol: R_maphash|||) [errormsg: Error in dyn.load(file, DLLpath = DLLpath, ...) : |||  unable to load shared object '/usr/local/lib/R/library/utils/libs/utils.so':|||  /usr/local/lib/R/library/utils/libs/utils.so: undefined symbol: R_maphash|||]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const string&, SEXPREC**, rstudio::r::sexp::Protect*, rstudio::r::exec::EvalFlags) src/cpp/r/RExec.cpp:388


Standard output:

[No output emitted]

Logs

/home/niab/.local/share/rstudio/log/rsession-niab.log

]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const string&, SEXPREC**, rstudio::r::sexp::Protect*, rstudio::r::exec::EvalFlags) src/cpp/r/RExec.cpp:388; LOGGED FROM: int rstudio::r::session::RReadConsole(const char*, CONSOLE_BUFFER_CHAR*, int, int) src/cpp/r/session/RStdCallbacks.cpp:296
2024-09-23T09:30:26.351642Z [rsession-niab] ERROR R SUICIDE: 2024-09-23T09:30:26.351568Z [rsession-niab] ERROR r error 4 (Error in dyn.load(file, DLLpath = DLLpath, ...) : |||  unable to load shared object '/usr/local/lib/R/library/utils/libs/utils.so':|||  /usr/local/lib/R/library/utils/libs/utils.so: undefined symbol: R_maphash|||) [errormsg: Error in dyn.load(file, DLLpath = DLLpath, ...) : |||  unable to load shared object '/usr/local/lib/R/library/utils/libs/utils.so':|||  /usr/local/lib/R/library/utils/libs/utils.so: undefined symbol: R_maphash|||]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const string&, SEXPREC**, rstudio::r::sexp::Protect*, rstudio::r::exec::EvalFlags) src/cpp/r/RExec.cpp:388; LOGGED FROM: void {anonymous}::rSuicide(const string&) src/cpp/session/SessionMain.cpp:1277
2024-09-23T09:30:26.351642Z [rsession-niab] ERROR R SUICIDE: 2024-09-23T09:30:26.351568Z [rsession-niab] ERROR r error 4 (Error in dyn.load(file, DLLpath = DLLpath, ...) : |||  unable to load shared object '/usr/local/lib/R/library/utils/libs/utils.so':|||  /usr/local/lib/R/library/utils/libs/utils.so: undefined symbol: R_maphash|||) [errormsg: Error in dyn.load(file, DLLpath = DLLpath, ...) : |||  unable to load shared object '/usr/local/lib/R/library/utils/libs/utils.so':|||  /usr/local/lib/R/library/utils/libs/utils.so: undefined symbol: R_maphash|||]; OCCURRED AT rstudio::core::Error rstudio::r::exec::evaluateString(const string&, SEXPREC**, rstudio::r::sexp::Protect*, rstudio::r::exec::EvalFlags) src/cpp/r/RExec.cpp:388; LOGGED FROM: void {anonymous}::rSuicide(const string&) src/cpp/session/SessionMain.cpp:1277