I just installed RStudio for the first time since someone showed me I could make RevealJS slides from Markdown. However, everytime I open RStudio (open source desktop version), it freezes. I can move the mouse for a few seconds or perhaps click once (menu, button, etc.), but the program hangs and needs to be restarted.
I have tried uninstalling / reinstalling three times, but each time I get the same behavior. Does anyone have any advice on how to solve this problem?
I think @squeezer44 might have been trying to find out if maybe the hang happens when RStudio tries to start up R, in which case the culprit might be a problem with your R installation. (If you read that sentence and suddenly felt , you might want to take a look at: Differentiating R from RStudio).
Do you remember how you installed R?
Can you open Rgui.exe (the simple GUI that gets installed when you install R)? Does it seem to work OK? What do you get if you run sessionInfo() from the console in Rgui.exe?
If your question's been answered, would you mind choosing a solution (totally OK to choose your own post)? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:
Someone had a superficially similar problem recently that seems to have been an interaction with a background program. A next step might be to read through that thread and see if any of the troubleshooting steps help you, too?
We've found that if we have our default working directory set to a network drive (h:) rather than C:, RStudio is so slow that it's unusable. This wasn't always the case though - only seems to be a relatively recent thing.. Our h: drive is also available offline via Offline Folders, so that might be another complicating factor.
We've also noticed that when we try to create a new R script and use Save As to save to h: drive, it never actually saves. Anyone having this issue?
Since this seems like a substantially different question, would you mind posting it as a new topic? (we do like to keep things tidy around here )
What version of RStudio are you running? There's been a number of network-drive-related issues filed in the past, and development effort toward resolving them. Since network drives don't seem to be involved in @rob7's problem, probably best to also open a new topic if you want more help with this?
I remembered that there were reports in the past of some anti-virus software (including Windows Defender) causing freezes and extreme slowness in previous versions of RStudio:
I don't know if this is even likely to still be a source of problems (the IDE team may have long since made changes that work around such issues), but maybe something else to look at?