1

I updated to R 4.3.0 and updated RStudio at the same time. After installing and upon opening an R project and before running any code, an error message immediately pops up "

R encountered a fatal error.

The session was terminated."

The same thing happens when I attempt to open RStudio directly and not through a project file.

I followed suggestions to remove .RData. I've also attempted to remove and reinstall as indicated on this thread. However, this didn't resolve the issue. I also saw a suggestion on that post to edit .Rprofile, but I either don't have this file or can't locate it. According to this post, that issue seems to have been resolved, so I'm not sure it is relevant to my issue.

I suspect it has something to do with R and not RStudio because I installed an old version of R 3.3.3 and RStudio did not produce the error message, but I need a newer version of R to run certain packages.

I found this similar question. I've deleted and reinstalled R and RStudio a few times now and this hasn't fixed my problem. I'm not sure what they mean by "R Frameworks" and don't want to delete things I am not sure about.

  • 1
    To make sure the problem is with Rstudio, have you tried launching R from the terminal or another app launcher, directly? In a Unix system, it is as simple as typing `R` and `enter` in the terminal. – GuedesBF Apr 25 '23 at 23:50
  • I can use R alone to run code without generating the "fatal error"; however I get a different error related to biomaRt package installation "caught segfault address 0x18, cause 'memory not mapped'". I've never seen this particular error before when installing packages that are not compatible versions, so I am not sure this is unrelated to my problem, though would easily believe it is a different issue. – Elizabeth Everman Apr 25 '23 at 23:58
  • FWIW, I did not figure out what was wrong, but switching to R 4.2.3 solved my problem. – Elizabeth Everman May 01 '23 at 19:52

0 Answers0