R 安装 2.15.2 Renvirons 未找到,Ubuntu 12.10 x64

标签 r installation package ubuntu-12.10

Ubuntu 12.10 x64,R 2.15.2

我很茫然,我已经安装了R很多次了,但安装从来没有遇到过丝毫问题。然而这一次,当我启动程序(通过使用 GUI 或在终端中键入“R”)时,我得到了这个;

cannot find system Renviron Error : .onLoad failed in loadNamespace() for 'utils', details: call: options(op.utils[toset]) error: invalid value for 'editor'

R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

Error : .onLoad failed in loadNamespace() for 'utils', details:
call: options(op.utils[toset]) error: invalid value for 'editor' In addition: Warning message: package "methods" in options("defaultPackages") was not found Error : .onLoad failed in loadNamespace() for 'utils', details: call: options(op.utils[toset]) error: invalid value for 'editor' In addition: Warning message: package ‘utils’ in options("defaultPackages") was not found Error : .onLoad failed in loadNamespace() for 'utils', details: call: options(op.utils[toset]) error: invalid value for 'editor' In addition: Warning message: package ‘stats’ in options("defaultPackages") was not found During startup - Warning message: package ‘methods’ in options("defaultPackages") was not found

没有任何效果,没有找到任何包。我从未接受过任何有关如何使用 Ubuntu 的培训,但据我所知,我缺少推荐的 R 软件包。

我尝试使用终端和 Synaptics 包管理器完全删除 R,然后从 CRAN 服务器重新下载(对于我的互联网连接来说,下载速度似乎太快),然后重新安装。同样的消息。我很茫然。

最佳答案

我遇到了同样的问题,设置 EDITOR 环境变量解决了我的问题。

尝试例如

EDITOR=vim R

如果有效,请输入该行

export EDITOR=vim

在 ~/.profile 的末尾

编辑:问题的根源是 R 没有读取/etc/R/Renviron。正如 Dirk 评论他的回复,

sudo chmod 644 /etc/R/Renviron

解决问题

关于R 安装 2.15.2 Renvirons 未找到,Ubuntu 12.10 x64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15090817/

相关文章:

r - 根据分隔符拆分多个条目

r - 显示每列的唯一值

c# - 如何在 installShield 上创建安装程序以安装两个程序

java - 如何在 Java 中的两个包之间共享包私有(private)数据?

java - 无法使用 TestNG 在 Selenium Eclipse 中实例化类

r - 无法访问 GEOquery R 中的 GSM 列表

R 数据表 - 加入但过滤更新

error-handling - 致命-桉树安装失败

java - 如何在 JavaFX 中设置应用程序安装程序图标?

php - 有没有办法从 Laravel 5 的包中排除 CSRF 保护的路由?