【问题标题】:Rcmdr Error : .onLoad failed in loadNamespace() for 'tcltk'Rcmdr 错误:'tcltk' 的 loadNamespace() 中的 .onLoad 失败
【发布时间】:2015-01-02 03:37:20
【问题描述】:

我不知道我在做什么,但我需要在我的统计类中使用 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 r-commander


    【解决方案1】:

    R 开发人员已尝试解决 R 在 Mac 上不完全支持 Tcl/Tk 时不给出有用的错误消息的问题。似乎 R 3.1.2 为此依赖于 Xtools 的 otool。但是,您可以从 http://r.research.att.com/ 下载 R 的修补版本以消除错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-01-25
      • 2015-12-03
      • 2016-10-10
      • 2019-05-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多