gpt4 book ai didi

RStudio 初始化错误,意外异常, fatal error

转载 作者:行者123 更新时间:2023-12-05 01:43:31 27 4
gpt4 key购买 nike

我在启动 RStudio(桌面)时遇到了以前没有的问题。

当我启动 RStudio 时,几秒钟内,灰色屏幕卡住并显示以下错误消息:

RStudio 初始化错误无法与 R session 建立连接

单击“确定”后,我收到以下两条错误消息:

RStudio意外异常:正则表达式的复杂度超出了预定义的范围...

和...

R 遇到 fatal error 。 session 已终止。

Screenshot of RStudio Initialization Errors

非常感谢任何解决这些错误的帮助。

“意外异常”错误读起来好像 RStudio 尝试运行它在启动时自动加载的东西时出了问题。因此,相关的问题是:如何在不打开任何以前的文件/代码/数据的情况下重新启动 RStudio?

我已尝试卸载并重新安装 R 和 RStudio,并且 R 安装正常(我可以打开并在 R 控制台上工作)。

我正在与:- Mac OSX 10.10.5-R 3.3.3- RStudio 1.1.423

谢谢!

最佳答案

刚收到 RStudio 团队的消息,他们的解决方案对我很有效。

Indeed, RStudio is crashing while attempting to open a file you had opened from a previous session. You should be able to work around this by resetting your RStudio state.

重置 RStudio 的指令是 here .相关摘录:

RStudio Desktop stores your custom settings and options in a hidden directory called RStudio-Desktop. If this directory does not exist, RStudio will create it on start up. This directory includes user settings, log files, and other state information. Removing (or renaming) this directory will reset RStudio's state analogous to a fresh installation.

We recommend renaming this directory to create a backup version instead of completely deleting it. This allows you to save your settings, in case you want to revert back to them. Additionally, if you experienced a crash or RStudio failed to start, this directory may contain vital information for determining the source of the error. In this case, we recommend renaming this directory to backup-rstudio-desktop and sending it along if asked by RStudio Support.

所以,只需删除 ~/.rstudio-desktop 文件(实际上,将其重命名为 ~/backup-rstudio-desktop 这样我就有了备份)解决了启动问题!

关于RStudio 初始化错误,意外异常, fatal error ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49182921/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com