@sunny Could you give more details about the versions you are using for R and RStudio, what the .history file holds and also, the OS.
There are numerous possibilities for the R-session to crash. I am listing down a couple of them -
-
.history file might be loading certain things which are taking infinite time and causing the session to abort. Ideally this should not happen as R should give out an error message and continue functioning as usual.
-
Try following below steps if you are on Windows
- Open
%localappdata% and search for RStudio-Desktop
- Rename that folder to something else and then try opening RStudio again
Let me know if this helps!