My problem is simple; RStudio freezes within five minutes after I start the application. It freezes at the most random moments (e.g., when I try to save a small data set, when I am writing a dplyr command, when I execute a command of two lines) and all I can do is re-start RStudio. Sometimes it will even freeze when I am typing. I am working with a perfectly normal data set (saved as .csv) and my script is only a 1000 lines. The bug occurred before I updated RStudio to the most recent version, and persists after I updated the application. I have no idea how to resolve this issue. My computer has sufficient RAM/memory available. Should I re-install R? Any suggestions are greatly appreciated. My apologies if the question is too vague, I just do not know how to frame it otherwise.
I managed to solve the problem! Apparently the issue was caused by GitHub CoPilot. No idea why CoPilot suddenly became so dysfunctional, but disabling it did the trick. Hopefully, I will be able to use RStudio in the future again with CoPilot, but that is something I will have to sort out later. Thanks for the assistance, much appreciated!