[R-SIG-Mac] Rcmdr start-up issue
jfox at mcmaster.ca
Tue Oct 3 19:03:23 CEST 2017
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),
tt <- tktoplevel()
label.widget <- tklabel(tt, text = "Hello, World!")
button.widget <- tkbutton(tt, text = "Push",command = function()cat("OW!\n"))
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 Fox, Professor Emeritus
Hamilton, Ontario, Canada
> -----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()
>  "x86_64-apple-darwin15.6.0"
>  "x86_64"
>  "darwin15.6.0"
>  "x86_64, darwin15.6.0"
>  ""
>  "3"
>  "4.1"
>  "2017"
>  "06"
>  "30"
> $`svn rev`
>  "72865"
>  "R"
>  "R version 3.4.1 (2017-06-30)"
>  "Single Candle"
> [[alternative HTML version deleted]]
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
More information about the R-SIG-Mac