[R-SIG-Mac] Rcmdr start-up issue

Fox, John jfox at mcmaster.ca
Tue Oct 3 19:03:23 CEST 2017


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



> -----Original Message-----
> From: R-SIG-Mac [mailto:r-sig-mac-bounces at r-project.org] On Behalf Of
> Robert Baer
> Sent: Saturday, September 23, 2017 10:25 AM
> To: r-sig-mac at r-project.org
> Subject: [R-SIG-Mac] Rcmdr start-up issue
> 
> I seem to be having a problem starting Rcmdr:
> 
> > library(Rcmdr)
> Loading required package: splines
> Loading required package: RcmdrMisc
> Loading required package: car
> Loading required package: sandwich
> Loading required package: effects
> Loading required package: carData
> 
> Attaching package: ‘carData’
> 
> The following objects are masked from ‘package:car’:
> 
>     Guyer, UN, Vocab
> 
> lattice theme set by effectsTheme()
> See ?effectsTheme for details.
> Error: package or namespace load failed for ‘Rcmdr’:
>  package ‘tcltk’ does not have a namespace
> >
> 
> I tried first from within RStudio, then from R itself. Same outcome.
> Reinstalling Rcmdr, tcltk or tcltk2 package did not seem to help.
> 
> I’m brand new to mac, so I may be missing something basic.  On the other
> hand I should confess to just having just “updated” Xcode.
> 
> > R.Version()
> $platform
> [1] "x86_64-apple-darwin15.6.0"
> 
> $arch
> [1] "x86_64"
> 
> $os
> [1] "darwin15.6.0"
> 
> $system
> [1] "x86_64, darwin15.6.0"
> 
> $status
> [1] ""
> 
> $major
> [1] "3"
> 
> $minor
> [1] "4.1"
> 
> $year
> [1] "2017"
> 
> $month
> [1] "06"
> 
> $day
> [1] "30"
> 
> $`svn rev`
> [1] "72865"
> 
> $language
> [1] "R"
> 
> $version.string
> [1] "R version 3.4.1 (2017-06-30)"
> 
> $nickname
> [1] "Single Candle"
> 
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac


More information about the R-SIG-Mac mailing list