Error in command: library(Rcmdr)

Hello, I am using this program for a graduate course and have no idea how to solve this error and I'm way out of my league in troubleshooting code of this nature. I appreciate any and all help.

Code from window:

library(Rcmdr)
Loading required package: splines
Loading required package: RcmdrMisc
Loading required package: car
Loading required package: carData
Loading required package: sandwich
Loading required package: effects
Registered S3 methods overwritten by 'lme4':
method from
cooks.distance.influence.merMod car
influence.merMod car
dfbeta.influence.merMod car
dfbetas.influence.merMod car
lattice theme set by effectsTheme()
See ?effectsTheme for details.
Error: package or namespace load failed for ‘Rcmdr’:
.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"

Package "Rcmdr" downloaded successfully but when I typed library(Rcmdr), this error came up

System Information:

  • OS Version: 10.12.6 macOS Sierra
  • R Version: R 3.6.0 binary for OS X 10.11 or higher

Have you read the Mac OSx installation notes from RCommander's official page? It seems like there are plenty of things to go wrong.

error: [tcl] invalid command name "tk_messageBox".
In addition: Warning message:
In fun(libname, pkgname) : couldn't connect to display ":0"

Going by the installation page linked above, this might mean you have an older version of X-Windows. The page says how to update it.

Also, since you originally added the RStudio IDE tag to this topic, I suppose that you are trying to launch it from RStudio and I think that Rcmdr is no longer compatible with RStudio so it is better if you launch it from R GUI instead.

1 Like

Thank you for your assistance! Problem solved

A post was split to a new topic: Is it possible to run Rcmdr or any other R-gui with lists through R studio cloud?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.