1

我在 Mac 上使用 R。我尝试将我的 Rprofile 文件移动到其他位置,但 R 没有启动。当我试图将 Rprofile 文件放回其原始位置时,我不记得它究竟来自哪个文件夹。

我的 Rprofile 文件位于 /Library/Frameworks/R.framework/...

现在 R(和 RStudio)无法启动,并且 R 给出以下错误消息:

Error: package 'grDevices' does not have a namespace

 *** caught segfault ***
address 0xa8000000, cause 'memory not mapped'

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

RStudio 给出的信息:

The R session had a fatal error.

ERROR r error 4 (R code execution error) [errormsg=Error : package 'utils' does not have a namespace
]; OCCURRED AT: core::Error r::exec::evaluateString(const std::string &, SEXP *, sexp::Protect *) /Users/rstudio/rstudio/src/cpp/r/RExec.cpp:255

我假设 R 找不到 Rprofile 文件。如何让 R(和 RStudio)重新开始?

4

1 回答 1

0

我犯了同样的错误,这有点烦人。对我来说,是我告诉 RStudio 使用 x64(64 位)。

我必须完全卸载 R,启动 Rstudio,它询问 R 的位置

我安装了 bot 64 和 32 位版本

将 RStudio 指向新安装的 R,但这次是 32 位位置。它开始很好。

使用 RStudio 0.98.507 和 R 3.1.0 [Windows 7 64Bit] 完成

于 2014-05-25T13:02:10.580 回答