简体   繁体   中英

Rcmdr error when loading in OSX Yosemite

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.

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM