For diagnostic reports, crash reports, or log files, you may wind up with output that is too long to paste in here. Please share it somewhere else (Google Drive, GitHub gist, Dropbox, etc) and link to it here. For your own security, please make sure you delete any sensitive information (e.g., your computer's IP address) before posting.
Thanks, ,
The software versions of the installers that I used are:
R-3.6.1-win.exe
RStudio-1.2.5019.exe
RStudio doesn't crash, it just igpanenores me for some minutes and then pays attention again. Spcifically, the blinking cursor stops blinking for that time. This happens in the script window pane and in the console window pane. The Maximise and Restore buttons of the outer window still function during this pause.
The session log is empty, and the rdesktop log shows:
14 Nov 2019 05:19:38 [rdesktop] ERROR Main window closed unexpectedly; LOGGED FROM: auto __cdecl rstudio::MainWindow::closeEvent::<lambda_9193e8662378f0135bda1ce57e06be4d>::operator ()(class QVariant) const C:\jenkins\workspace\IDE\windows-v1.2\src\cpp\desktop\DesktopMainWindow.cpp:284
I think that was from when I tried to exit RStudio, and was only able to do it by clicking the X button on the window.
Here's the output of sessionInfo():
sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Yes, I have a project open when RStudio hangs.
Yes, I have just downloaded a sample project and opened it as a new project. I was reading through the comments at the start of the script and RStudio stopped responding. A minute or so later the cursor started blinking again.
I just tried (with Ctrl-Enter) to run the line:
data(diamonds, package = "ggplot2")
and RStudio ignored me for a couple of minutes, and is now being responsive again.
No, I am running this on my PC, on its C drive. It is connected to a LAN which has internet access through a NAT router, but I don't think anything is waiting for a network connection.
By the way, I have been able to produce the plot that I wanted from tab-separated values in a text file out of Excel.
Do you have a large number of packages installed? What is the output of:
length(list.files(.libPaths()))
You might also try generating an R profile and sharing that with us.
It's possible some of the slowness is caused by R code that RStudio is running behind the scenes. Can you try running an R profile? Try the following:
Within R, execute:
file.edit("~/.Rprofile")
to edit your global .Rprofile. In that file, try adding:
utils::Rprof("~/rstudio-trace.Rprof")
After doing this, close RStudio, then re-launch it. After RStudio has successfully launched, use the IDE until you observe slowness in the IDE. After that has resolved, run:
utils::Rprof(NULL)
Then, find the file at "~/rstudio-trace.Rprof", and share it with us.
You can also try sharing the printed output of
utils::summaryRprof("~/rstudio-trace.Rprof")
directly, as that may point us towards what we need to know.