R studio is very slow (typing text lags) -- how to resolve? #354
Comments
I'm having a similar problem. When I look back at what I've typed, I find characters or strings of characters missing, as if my typing speed (certainly not fast) was faster than the RStudio processing speed. |
Hmmm .... I will ask someone on the inside about this. |
@aramcb @RosieRedfield and anyone else experiencing this, can you share more specifics?
|
Rstudio version R Markdown was the type and it was a class file so pretty small. Thank you! |
Some more potential culprits -- just trying to figure out a possible cause...
Please let us know if you discover anything that affects the lagginess (whether it makes it worse, or better!) |
Hi Kevin, I have already tried clearing the console and history -- this doesn't seem to help. I am not sure how to check if my laptop has a high DPI display BUT I will try running R studio with "disable display scaling on high DPI settings" using compatibility mode. I will let you know if this fixes it. Thank you! |
It's only happened a few times and I didn't pay attention to the circumstances (just fixed the text and went on). But I'm pretty sure one of the times was when I was typing notes in yesterday's class. This was in a small R or Rmd file, using the latest (preview) version of RStudio on an old macbook pro. |
Thanks, everyone! And please let me know if you're able to discover a reproducible example -- once we have that, we'll have a much better chance of isolating + fixing the problem. |
Some potential fixes gathered from around the internet:
Other thoughts:
|
Just want to say that disabling "display scaling on high DPI settings" (by using compatibility mode -- via right-clicking R-studio shortcut) seemed to work for me. This solution works in spite of me having zoom on (everything is too small otherwise). Very happy with this. Aram |
Remember that you can set the font size from options |
Awesome, glad to hear that resolves the issue @aramcb. We are still hopeful that newer versions of RStudio will come with a faster rendering engine that will ensure workarounds like this are no longer needed! |
I just want to say that the issue has somewhat returned for me; what appears to help is clearing the saved history of commands every once in a while. |
If someone has found a solution for this, please do share! The issue persists on my end. Still waiting :( |
The lag appears to only occur on R Markdown docs. :( |
@aramcb, some more things that might be worth checking:
If you haven't already, can you try installing the latest daily build of RStudio and let us know if the issue is any better there? http://dailies.rstudio.com Any extra information about things that make the lag better or worse will be helpful here -- thanks! |
Does the lag depend on how large the editor window is? (Is there less lag when it's smaller?) Do you see this lag in all R Markdown documents, or just certain (e.g. large) ones? Is the lag worse near the start of the document, or end, or anything like that? Does the lag get worse over time, or is it always there and bad? Does disabling diagnostics make a difference? (Tools -> Global Options... -> Code -> Diagnostics; uncheck the 'Show Diagnostics for R' preference) Does disabling inline toolbars help? (Tools -> Global Options... -> R Markdown -> Show inline toolbar for R code chunks) ** restarting sometimes temporarily helps Thank you for any solution you may provide! Best, |
I'd love to hear if you can figure out what causes the lag to disappear -- one thing that sometimes helps is clearing the console (e.g.
This could be triggered by the autocompletion system or something similar -- a way to reproduce this issue would be much appreciated! |
I just found out that windows 10 build 1703 causes the slow render text if the DPI value is over 100%. What I did is change back it 100% and restart the computer. Then, open up R studio and open .R that containing many text then close. After that, change DPI to any value you want then restart computer again. |
That's very helpful to know -- thanks! We'll try testing as well to confirm whether this rings true on our side. |
@NanXt how do you change the DPI value? |
Hi I was facing exactly the same text lags as described in the previous postings. New computer
Then I changed back to RStudio version 1.0.153 and the lagging disappeared. |
Hi, Same issue here:
If I run RStudio overriding the HDPI scaling behaviour works fine. After trying all the suggestions, that's the only that works for me, although the quality of the IDE in terms of stylish/appearance is now worse. I hope RStudio team could solve this soon. Thanks in advance. |
We're currently working on updating the web rendering engine used by RStudio Desktop on Windows + Linux. This is a relatively large chunk of work but hope to have something testable by the end of the year. |
Hi Kevin, Thanks in advance. I hope to have some news soon, I'm looking forward to this great update. |
My two cents: I have a very fast machine, but the typing lag persists with all of the above recommendations (disabling diagnostics, overriding windows DPI settings, updating Rstudio, etc.)
|
@aramcb you can find instruction here. I normally use 125% |
I have the same lagging problem with Rmarkdown. |
I'm having the same issue both with lags in typing and execution. I don't have an easily shareable reproducible example as they mostly come with longer, more involved .Rmd but I can try to make one. Some additional details:
I enjoy RStudio but this definitely slows down my work. Thanks for the help! |
My impression is that a definitive fix for this (on Mac) is in the works for early 2018. |
Hi, just wondering if there is an update on the time frame for this fix. I have a number of projects on hold because of this issue, which has rendered my RStudio application unusable. I would like to continue with RStudio but will need to move to an alternative if a fix is not imminent. Thanks in advance for any advice you can provide. Cheers, Darren. |
Maybe I should let @kevinushey summarize? But the main part of the work has happened, mostly by @kevinushey, in fact, but there's lots of loose ends and things to test. I bet he can give some info about when it will be available. |
Hi all. I just installed the RStudio Desktop (Version 1.2.294) daily from https://dailies.rstudio.com, and this issue appears to be resolved. Happy days. I am running Win10 64-bit on a MacBook Pro (i7-5557U and Intel Iris Graphics 6100) via Bootcamp. I do not use Mac OS, so I cannot comment on whether the fix applies to the Mac daily also. My sincerest thanks to @kevinushey and the RStudio team for the fix, and to @jennybc for keeping us updated. Cheers, Darren. |
Awesome! The daily builds are still somewhat unstable, so you may run into some strange issues here and there -- please let us know if you bump into anything at https://github.com/rstudio/rstudio/issues. For anyone else who stumbles upon this thread, you can try downloading the latest daily builds of RStudio at https://dailies.rstudio.com, but please note that we just finished a migration of some internal machinery in the v1.2 builds and there is yet work to be done to buff out the rough edges. |
I stumbled across this thread... Probably not the right place but just adding a huge thankyou to @kevinushey and the team for the hard work on this. It was getting so frustrating working with .Rmd files (slow and laggy) I was at the point of using VS instead just so I could keep working (that or throw my laptop out a window). Installed the latest daily yesterday and now it's blazingly fast. Thanks again! |
Agree with the last post: Thank you for the attempt to fix this. |
Yes, thank you for addressing this problem. Is there an estimate for when
these fixes will be part of an official release?
…On Fri, Feb 16, 2018 at 3:35 AM, Nzteb ***@***.***> wrote:
Agree with the last post: Thank you for the attempt to fix this.
For me also the lag is very strong under version 1.1.423. The lag totally
disappears under the daily version 1.2.349. Sadly, opening and saving files
deletes all the content of the files in this version. I'm happy to wait for
the official release.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#354 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMQxm4OBPndASTTKXZlhwUMj2CplgCxOks5tVT23gaJpZM4KOC9R>
.
--
Matt Lowes
Agriculture Research Manager
One Acre Fund | +1 713 302 9780 (US)
+254 (0) 724 111 610 (Kenya) | Skype: matt.lowes
Twitter <https://twitter.com/oneacrefund> | Facebook
<https://www.facebook.com/oneacrefund> | Website <https://oneacrefund.org>
| Blog <https://oneacrefund.org/blogs>
One Acre Fund supplies smallholder farmers with the tools and financing
they need to grow their way out of hunger and poverty. We only serve
farmers and we always put *Farmers First*.
|
@Nzteb: would you be willing to file this as a bug report at https://github.com/rstudio/rstudio/issues? We'd definitely like to fix that up before producing our official release! Some details on your system configuration would be helpful as I don't think we've had any reports of this thus far. |
@mattlowes: currently the estimate is sometime in autumn; unfortunately we're still a little ways out. With some luck we may have a more stable build available as a preview release near the end of summer, though. |
@kevinushey I did it for the most recent daily version. |
@kevinushey my markdown document was very short and it was still very slow. I've used the Rstudio daily build and it's been working fine for the last 3 hours. Will report back if something changes.
I'm currently using a Dell XPS 15 with Windows 10, fresh install. |
I have been having some problems with Rstudio also. The only thing that seems to have helped is reverting from the standalone version to the one loaded through anaconda. Am I right in thinking there are subtle differences? The things that I can comment on, ... when I run my code, among the values, there appears something like "gctorture = FALSE." (I think) I have tried most/all of the solutions that other people have tried. I also ran "open ~/.rstudio-desktop" and deleted all of the files contained therein, so to reset rstudio settings. I dont think my problem is to do with my operating system ,,,, but everything is heating up. I would really appreciate it if I could understand how to avoid this in the future? |
I was also experiencing lags for R notebooks on RStudio Desktop 1.1.383, Mac OS X 10.12.6. For me, what seemed to cause the lags was saving the notebook, as that triggered the HTML rendering which I believe is the slow part (kevinushey also referenced that the latest fix was in the HTML rendering). I just tried out the Mac daily build 1.2.707 from https://dailies.rstudio.com/, but the problem persists. I thought this might be because the latest fix was only rolled out on Windows and Linux? Is there a timeline for a similar Mac implementation? Thanks. |
I have the lag issue, which I suspect to be due to my high resolution monitor (4K). I switched the Rstudio theme back to classic and the lag seems to be OK. |
@brianzhang01 The latest v1.2 builds of RStudio should have the associated fixes for slowness on macOS as well. Any chance you can provide some more information on where you're observing this slowness? Can you provide a standalone sample notebook that is slow on your machine? Preferably something that I'd be able to run and play with on my own macOS machine if at all possible. |
@kevinushey I also have had issues working with .Rmd documents w/ git on Windows. I've noticed it affects: I'm on Windows 10. I just updated to git version 2.18.0.windows.1. I've run into this both with RStudio Desktop release 1.1.456 and with the daily build of RStudio 1.2.830. The issue seems to only be on projects where I have git set-up. I tried disabling security settings, overiding DPI scaling, maxing performance mode but issue seems to persist. The test file I've been using can be found here: https://raw.githubusercontent.com/brshallo/R4DS_Solutions/master/ch24.Rmd . |
This sounds different from the 'laggy typing' sorts of issues that have been discussed otherwise in this thread. It seems more that RStudio is hanging while performing certain actions (e.g. perhaps while running Git in the background). Can you file an issue on https://github.com/rstudio/rstudio/issues just so this doesn't get lost? |
Ok, So I was having this issue and oddly it was related to size of Rmd file. I tried many of the suggestions in this thread. The biggest improvement I have found so far is by switching to windows 7 compatibility mode. Also trying to reduce size of Rmd file (possibly by splitting the task into multiple Rmd scripts). For me many of the settings either in app or DPI adjustments did not help. |
Just wanted to bump this again: The issue persists despite implementing any of the offered recommendations. Would be great to see some action to resolve this. |
@egorananyev to confirm, have you tried the latest preview release? If the issue still persists, please file an issue. |
Yes, just tried it. It's indeed much faster! |
Hallelujah! |
Beautiful! I installed the latest preview release as suggested by @kevinushey and my RMarkdown doc is nice and smooth for the first time. Thanks! |
Hello,
My R studio IDE lags extremely when typing text and this really makes it frustrating to code. Of note, the actual execution of code takes no time but the writing of code lags. This issue occurs regularly but not always. I have looked online to no avail for a solution. I have tried reinstalling R studio to no avail as well.
Does someone have a solution?? thx!
I do not believe it is an issue with my laptop which has sufficient specs to run this:
Aram
The text was updated successfully, but these errors were encountered: