Reputation: 31
I'm trying do load Rcmdr and keep getting an error message.
I'm using Rstudio Version 0.98.1091 on a OSX Yosemite operating system.
I have done the following:
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
However, when I try to load it, I get the following error:
> 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’
I have already installed X11 and it still doesn't work.
Upvotes: 3
Views: 7816
Reputation: 61
I had this same issue-- but it ended up working fine as long as I had X11 running prior to opening R. Now it works fine. See if that works!
Upvotes: 3