我尝试加载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但它仍然无法正常工作。
答案 0 :(得分:3)
我有同样的问题 - 但只要我在打开R之前运行X11,它就会正常工作。现在它运行正常。看看是否有效!