Hello everyone,
I'm encountering an issue every time I try to start RStudio. I get the following error:
"Error Starting R
The R session failed to start."
Here are the details:
when i open the R studio this is the problem
Error Starting R
The R session failed to start.
RSTUDIO VERSION
RStudio 2024.04.2+764 "Chocolate Cosmos " (e4392fc9, 2024-06-05) for Ubuntu Jammy
[No error available]
/usr/lib/rstudio/resources/app/bin/rsession: symbol lookup error: /usr/lib/rstudio/resources/app/bin/rsession: undefined symbol: Rf_countContexts
OUTPUT
[No output emitted]
/home/admin1/.local/share/rstudio/log/rsession-admin1.log 2025-04-18T12:55:43.890484Z [rsession-admin1] ERROR system error 84 (Invalid or incomplete multibyte or wide character) [str: επιλογή, len: 14, from: UTF-8, to: ISO8859-1]; OCCURRED AT rstudio::core::Error rstudio::r::util::{anonymous}::iconvstrImpl(const string&, const string&, const string&, bool, std::string*) src/cpp/r/RUtil.cpp:268; LOGGED FROM: rstudio::core::Error rstudio::session::modules::spelling::{anonymous}::checkSpelling(const rstudio::core::json::JsonRpcRequest&, rstudio::core::json::JsonRpcResponse*) src/cpp/session/modules/SessionSpelling.cpp:225 2025-04-18T12:55:43.890856Z [rsession-admin1] ERROR system error 84 (Invalid or incomplete multibyte or wide character) [str: τις, len: 6, from: UTF-8, to: ISO8859-1]; OCCURRED AT rstudio::core::Error rstudio::r::util::{anonymous}::iconvstrImpl(const string&, const string&, const string&, bool, std::string*) src/cpp/r/RUtil.cpp:268; LOGGED FROM: rstudio::core::Error rstudio::session::modules::spelling::{anonymous}::checkSpelling(const rstudio::core::json::JsonRpcRequest&, rstudio::core::json::JsonRpcResponse*) src/cpp/session/modules/SessionSpelling.cpp:225 2025-04-18T12:55:43.890856Z [rsession-admin1] ERROR system error 84 (Invalid or incomplete multibyte or wide character) [str: τις, len: 6, from: UTF-8, to: ISO8859-1]; OCCURRED AT rstudio::core::Error rstudio::r::util::{anonymous}::iconvstrImpl(const string&, const string&, const string&, bool, std::string*) src/cpp/r/RUtil.cpp:268; LOGGED FROM: rstudio::core::Error rstudio::session::modules::spelling::{anonymous}::checkSpelling(const rstudio::core::json::JsonRpcRequest&, rstudio::core::json::JsonRpcResponse*) src/cpp/session/modules/SessionSpelling.cpp:225
NEXT STEPS
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.
- If posting this report online, use the Copy Problem Report button below to generate a textual version of this diagnostic.
R version:
R version 4.5.0 (2025-04-11)
Linux system:
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
Has anyone encountered a similar issue or has any advice on how to resolve this? Any help is much appreciated!
Thanks in advance!