gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 03:27:13 28 4
gpt4 key购买 nike

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/

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