Hi everyone,
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.
Sietse
Welcome to the forum.
Let's try a basic step and reset your RStudio Desktop's State
It is not affected with normal upgrades or re-installations and often is a source of weird problems.
What version of RStudio?
Can you give us the output of
sessionInfo()
?
Thank you! My RStudio version is 2025.05.1 Build 513. Output of sessionInfo() is:
R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=Dutch_Netherlands.utf8 LC_CTYPE=Dutch_Netherlands.utf8 LC_MONETARY=Dutch_Netherlands.utf8 LC_NUMERIC=C LC_TIME=Dutch_Netherlands.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.2.1 tools_4.2.1
Thanks.
I doubt if it makes any difference but the most recent version of R is R 4.5.1 so you are a bit out of date there.
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!
1 Like
Ah, excellent! I have never used CoPilot and would never have though of it.
Best of luck.