[英]Rcmdr Error : .onLoad failed in loadNamespace() for 'tcltk'
I have no idea what I'm doing but I need to use R and Rcmdr for my statistics class. 我不知道我在做什么,但我需要使用R和Rcmdr作为我的统计类。 I am running OS X 10.7.5, using 3.1.2 for R.
我正在运行OS X 10.7.5,使用3.1.2 for R.
I have downloaded R. 我已经下载了R.
install.packages("Rcmdr")
Picked a mirror, downloaded all packages. 挑了一面镜子,下载了所有包裹。 I then typed in
然后我输入了
library(Rcmdr)
And received this error: 并收到此错误:
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
When I do: 当我做:
capabilities("tcltk")
# [1] TRUE
Have I done something wrong? 我做错了什么吗?
The R developers have tried to make a workaround for R not giving a useful error message when Tcl/Tk was not fully supported on a Mac. R开发人员试图为R做一个解决方法,在Mac上不完全支持Tcl / Tk时没有提供有用的错误消息。 It seems R 3.1.2 depends on the otool from Xtools for this.
似乎R 3.1.2依赖于Xtools的otool。 However, you can download a patched version of R from http://r.research.att.com/ to remove the error.
但是,您可以从http://r.research.att.com/下载修补版本的R以删除错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.