Skip to content
Prev 12221 / 15075 Next

Rcmdr start-up issue

Dear Robert,

The most common Rcmdr problem on macOS is failure to install XQuartz, which is required by the tcltk package. If you haven't installed XQuartz, then start there, and remember to reboot after the XQuartz installation: <https://www.xquartz.org/>. For more details, please see the Rcmdr installation notes for macOS at <http://socserv.socsci.mcmaster.ca/jfox/Misc/Rcmdr/installation-notes.html>. You should be able to use the Rcmdr from R.app, a terminal window, or RStudio.

On the other hand, if you *have* installed XQuartz and rebooted, and the problem still occurs, then see whether you can load and use the tcltk package directly, without the Rcmdr; try, e.g. (from ?TkWidgets),

	library(tcltk)
	tt <- tktoplevel()
	label.widget <- tklabel(tt, text = "Hello, World!")
	button.widget <- tkbutton(tt, text = "Push",command = function()cat("OW!\n"))
	tkpack(label.widget, button.widget)

Finally, your setup is very similar to mine -- that is, I haven't yet upgraded my Mac to R 3.4.2 (which I don't think is built yet for macOS) but all my R packages are up-to-date. An exception is that I haven't yet installed the latest version of Xcode, which I'll do now to see what happens. It's unclear to me from your message whether the Rcmdr package worked before you installed the newest Xcode.

I hope this helps,
 John

--------------------------------------
John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
Web: socserv.mcmaster.ca/jfox
Message-ID: <ACD1644AA6C67E4FBD0C350625508EC8366E2721@FHSDB4H16-2.csu.mcmaster.ca>
In-Reply-To: <25450_1507047458_v93GHaG4011614_09980FC0-F3A9-44E1-B76F-319379B0EF67@atsu.edu>