Alright, so I spent the whole freaking day trying to figure out what went wrong with my RStudio on my Mac. It was a nightmare, seriously! At first, I simply launched RStudio as usual, you know, double-clicked the icon, thinking everything would be fine and dandy.
BOOM! Fatal error message popped up. It said something like, “R encountered a fatal error. The session was terminated.” I was like, “What the heck does that even mean?” I tried to run some code, and still got “R encountered a fatal error.” It was frustrating.
So, I began my “detective work.” I did what most people would do, uninstall both R and RStudio. I thought, “Okay, clean slate, let’s do this.” I went to the Applications folder, found RStudio, and dragged that sucker to the trash. Did the same for R, of course. Then I downloaded the latest versions, reinstalled them with all the default settings, crossed my fingers, and launched RStudio again.
Guess what? That darn “fatal error” message was still there, mocking me. I was about to pull my hair out at this point.
I went online and checked major information sources and forums. Saw some posts from people who had similar problems. Some of them mentioned things like “Unexpected exception: basic_string” or “Unmatched [ or [^ in character class declaration.” Sounded like some alien language to me! I even thought maybe it was because of the antivirus or firewall blocking something. I disabled those, and still nothing.
- Went to Applications in Finder.
- Control-clicked * and moved it to Trash.
- Did the same to R.
- Disabled my antivirus and firewall.
- Reinstalled R and RStudio, hoping for the best.
It just wouldn’t start, no matter what I did. It’s like the session couldn’t even begin. I kept trying different things. I restarted RStudio using Cmd + Shift + 0, nothing. Tried running all the codes by pressing “command + return”, and still nothing.
After hours of this madness, I stumbled upon some posts talking about errors in a function called ‘read_delim’ in some ‘readr’ package. Apparently, it was causing similar problems for others. It was a compilation problem or something. Man, I was in way over my head. I just wanted my RStudio to work so I could do my stuff, you know? Anyway, I am still stuck here. Hopefully, tomorrow will be a better day.