我正在尝试加载 Rcmdr 并不断收到错误消息。
我在 OSX Yosemite 操作系统上使用 Rstudio 版本 0.98.1091。
我做了以下事情:
install.packages("Rcmdr")
trying URL'http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.1/Rcmdr_2.1-5.tgz'
Content type 'application/x-gzip' length 5342987 bytes (5.1 Mb)
opened URL
==================================================
downloaded 5.1 Mb
但是,当我尝试加载它时,出现以下错误:
> library(Rcmdr)
Loading required package: splines
Loading required package: RcmdrMisc
Loading required package: car
Loading required package: sandwich
Error : .onLoad failed in loadNamespace() for 'Rcmdr', details:
call: structure(.External(.C_dotTclObjv, objv), class = "tclObj")
error: [tcl] invalid command name "tk_messageBox".
In addition: Warning message:
In fun(libname, pkgname) : couldn't connect to display ":0"
Error: package or namespace load failed for ‘Rcmdr’
我已经安装了 X11,它仍然无法正常工作。