RStudio - R Session Aborted R encountered a fatal error

When I enter any command on RStudio I immediately get the message "R Session Aborted. R encountered a fatal error." I started having this issue right after I downloaded an updated version of R (and deleted the old one from my desktop). For reference, I have a Macbook (MacOS 11).

I have looked through previous posts to troubleshoot, and came across "Resetting RStudio Desktop State". I was able to successfully access my RStudio Desktop Directory and create a backup using the terminal, but it wasn't clear to me (from the article) what I should do from there to reset the desktop state.

I also am not sure that resetting the internal state will fix the issue that I am having, and welcome any other possible solutions.

Regarding resetting the state, if you moved/renamed the original file, you do not need to do anything else. If you made a backup copy but left the original file there, you need to delete the original file.

You mentioned updating R. Did you update to R 4.5.0 and, if so, what version of RStudio are you using? Only relatively recent versions of RStudio (December 2024 onward, I think) work properly with R 4.5.0.

Thank you so much for your help! The issue was that the version of RStudio I was using was not compatible with R 4.5.0.