Error Starting R problem

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!

Welcome to the forum.

Does R work on its own?

Open a terminal session and type R.

If R loads properly can you give us the output of

sessionInfo()

Copy the output and paste it here between

```

```

This will give us some formatted output that is easy to read.
Thanks

Your RStudio version may be too old to work with R 4.5. Take a look at this post.

Dear @jrkrideau,

Thank you for the response

sessionInfo()
R version 4.5.0 (2025-04-11)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.2 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.12.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0 LAPACK version 3.12.0

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

time zone: Europe/Athens
tzcode source: system (glibc)

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_4.5.0

Dear @prubin,

Thank you for your response.

So do you know the version of R studio for
R version 4.5.0 (2025-04-11)

and for Ubuntu 24.04.2 LTS

RStudio 2025.04.0-daily works for me on Linux Mint. 2024.12.1-563, which is available for download as a .deb file from the Posit web site, worked for someone in the post that I linked.

@prubin

Ok thank you, i will give a try.
And if i have any problem i will contact again.

I am also running 2024.12.1–563 but, IIRC, I was running R 4.5.0 successfully for before upgrading RStudio.