Rstudio 非常缓慢 [英] Rstudio is painfully slow
问题描述
突然,Rstudio 慢得令人痛苦,现在无法使用.这意味着,我打开它,如果我输入任何内容,会有几秒钟的延迟.我已经探索了我能想到的所有选项:1. 重新安装 R 和 Rstudio(虽然我不是 100% 确定我可以删除所有组件),2. 尝试重置设置.... 显而易见的事情,例如清除工作区和控制台.
Suddenly, Rstudio is painfully slow, and now it is unusable. This means, I open it up and there is a lag of several seconds if I type anything. I have explored all the options I can come up with: 1. re-installing both R and Rstudio (although I am not 100% sure I could remove all components), 2. trying to reset settings.... the obvious things such as clearing the workspace and the console.
我的数据大小可以忽略不计.我想不出别的……有什么想法吗?
The size of my data is negligible. I cannot think of anything else.... any ideas?
我唯一能做的表明配置可能有问题的观察是(有时),我将gctorture false"视为环境中的一个值.
The only observation i can make that shows something could be wrong with the configuration is (sometimes), I see "gctorture false" as a value in the environment.
推荐答案
只是猜测,但 ?gctorture 说
Just a guess, but ?gctorture says
Provokes garbage collection on (nearly) every memory allocation.
Intended to ferret out memory protection bugs. Also makes R run
_very_ slowly, unfortunately.
这听起来很适合您的问题!你可以试试
which sounds about right for your problem! You could try
gctorture(FALSE)
如果这加快了速度,那么寻找可能已经设置的地方,例如,在 .Rprofile(当前工作目录,或您的用户主目录,或 R 的安装目录;请参阅 ?.Rprofile
) 并确保您启动 R 没有加载任何 .Rhistory 或 .RData 文件(再次在工作目录、您的主目录等中)
If that speeds things up, then look for somewhere that this might have been set, e.g., in a .Rprofile (current working directory, or your user home directory, or the installation directory of R; see ?.Rprofile
) and make sure that you start R without loading any .Rhistory or .RData files (again in the working directory, your home directory, etc.)
这篇关于Rstudio 非常缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!