gpt4 book ai didi

r - Tcl 不能在 Linux CentOS 7 上使用 R,如何解决?

转载 作者:太空狗 更新时间:2023-10-29 12:24:43 28 4
gpt4 key购买 nike

我一直在我的 Linux CentOS 7 系统上使用 R 和 Rscript,多年来一切正常。

今天我尝试安装一个包,clusterSim,但我的 R 环境似乎不再工作了。这是我得到的错误:

install.packages("clusterSim");

--- 请选择本次 session 使用的CRAN镜像--- Warning: failed to download mirrors file (internet routines can be loaded); 使用本地文件'/home/david/miniconda3/lib/R/doc/CRAN_mirrors.csv' 错误:.onLoad 在“tcltk”的 loadNamespace() 中失败,详细信息:调用: fun(libname, pkgname) 错误:找不到可用的 init.tcl 以下目录: /opt/anaconda1anaconda2anaconda3/lib/tcl8.5 ./lib/tcl8.5 ./lib/tcl8.5 ./library ./library ./tcl8.5.18/library ./tcl8.5.18/图书馆

这可能意味着 Tcl 没有正确安装。

我尝试安装 tcl,但收到此消息:

sudo yum -y install tcl

Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.mirror.rafal.ca * epel: mirror.math.princeton.edu * extras: mirror2.evolution-host.com * ius: mirror.team-cymru.org * nux-dextop: li.nux.ro * updates: centos.mirror.iweb.ca Package 1:tcl-8.5.13-8.el7.x86_64 already installed and latest version Nothing to do

关于如何解决这个问题的任何想法?谢谢

最佳答案

与此相关的内容已被报告为错误,但由于部分更正而关闭。

你试过吗?

install.packages("clusterSim", repos='http://cran.us.r-project.org')

查看 this更多 !!!

关于r - Tcl 不能在 Linux CentOS 7 上使用 R,如何解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45422552/

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