gpt4 book ai didi

Rcmdr 错误 : . onLoad 在 'tcltk' 的 loadNamespace() 中失败

转载 作者:行者123 更新时间:2023-12-02 02:55:26 30 4
gpt4 key购买 nike

我不知道我在做什么,但我需要在统计类(class)中使用 R 和 Rcmdr。我运行的是 OS X 10.7.5,R 使用 3.1.2。

我已经下载了R。

install.packages("Rcmdr") 

选择了一个镜像,下载了所有包。然后我输入

library(Rcmdr)

并收到此错误:

Loading required package: splines
Loading required package: RcmdrMisc
Loading required package: car
Loading required package: sandwich
Error : .onLoad failed in loadNamespace() for 'tcltk', details:
call: system2("otool", c("-L", shQuote(DLL)), stdout = TRUE)
error: error in running command
Error: package or namespace load failed for ‘Rcmdr’
sh: otool: command not found

当我这样做时:

capabilities("tcltk")
# [1] TRUE

我是不是做错了什么?

最佳答案

R 开发人员尝试制定一种解决方法,以解决当 Mac 上不完全支持 Tcl/Tk 时 R 不会给出有用的错误消息。看来 R 3.1.2 依赖于 Xtools 中的 otool。但是,您可以从 http://r.research.att.com/ 下载 R 的修补版本。消除错误。

关于Rcmdr 错误 : . onLoad 在 'tcltk' 的 loadNamespace() 中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26765771/

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