[R-SIG-Mac] tcltk problem with R 3.1.2

John Fox jfox at mcmaster.ca
Mon Jan 26 22:03:42 CET 2015


Dear Paul,

> -----Original Message-----
> From: Paul J. Campbell [mailto:campbell at beloit.edu]
> Sent: January-26-15 3:31 PM
> To: jfox at mcmaster.ca
> Subject: tcltk problem with R 3.1.2
> 
> John,
> 
> I am comparing GUIs for R (Rcmdr, RStudio, JGR) to recommend one to my
> stats class.
> 
> I have followed your instructions re installation of Rcmdr on my home Mac
> OS 10.6.8 with R 3.1.2, which has XTools and XQuartz, and I have installed
the
> Tc/Tlk 8.6 that came with R 3.1.2.

Tcl/Tk is part of the standard R 3.1.2 installation. You should not have had
to do a separate install (though perhaps you didn't). You shouldn't need
XTools (though if it's installed, I suppose that it should provide otool).

> 
> I get a different error msg, re otools:
> Error: package or namespace load failed for 'Rcmdr'
> sh: otool: command not found
> > library(tcltk)
> Error : .onLoad failed in loadNamespace() for 'tcltk', details:
>   call: system2("otool", c("-L", shQuote(DLL)), stdout = TRUE)
>   error: error in running command
> Error: package or namespace load failed for 'tcltk'
> sh: otool: command not found

When the tcltk package loads it checks for the presence of otool, which I
believe is intended to determine whether there's a functioning X Windows
(though why this check is used is unclear to me).  This is a relatively new
check and may be source of the problem, or something may be broken in your
system. You might try reinstalling XQuartz and perhaps uninstalling the
Tcl/Tk that you installed separately from R (if you did so).

> > install.packages("tcltk")

This isn't necessary: the  tcltk package is part of the standard R
installation.

> Warning: unable to access index for repository
> http://www.ibiblio.org/pub/languages/R/CRAN/bin/macosx/contrib/3.1
> Warning message:
> package 'tcltk' is not available (for R version 3.1.2)

> > install.packages("tcltk2")
> Warning: unable to access index for repository
> http://www.ibiblio.org/pub/languages/R/CRAN/bin/macosx/contrib/3.1
> Warning message:
> package 'tcltk2' is not available (for R version 3.1.2)
>

There's some problem with the CRAN mirror that you're accessing, but tcltk2
should have been installed along with the Rcmdr package and needn't be
installed in a separate step.

I'm copying this response to the R-SIG-MAC email list and to Simon Urbanek
and Brian Ripley, who are likely to have more insight into your problem that
I do.

Best,
 John

-------------------------------------------------------
John Fox, Professor
McMaster University
Hamilton, Ontario, Canada
http://socserv.mcmaster.ca/jfox/



> The suggestions at your Web page do not cover this case; there are no
> permissions denials:
> 
> > system("ls -ld /usr/local /usr/local/lib /usr/local/lib/libtcl*")
> drwxr-xr-x   14 root  wheel      476 Dec 26 21:57 /usr/local
> drwxrwxrwx  124 root  wheel     4216 Jan 26 13:19 /usr/local/lib
> -rwxr-xr-x    1 root  wheel  4820229 Oct 21  2008
/usr/local/lib/libtcl8.5.dylib
> -r-xr-xr-x    1 root  wheel  1419604 Mar 29  2013
/usr/local/lib/libtcl8.6.dylib
> -rw-r--r--    1 root  wheel    11072 Oct 21  2008
/usr/local/lib/libtclstub8.5.a
> -rwxr-xr-x    1 root  wheel     4824 Mar 29  2013
/usr/local/lib/libtclstub8.6.a
> 
> Searching the Internet does not produce any usable solutions. Do you have
> any suggestions?
> 
> Most of my students have Macs with OS 10.9 (a minority have Windows PCs),
> and I run OS 10.10 on the ofc machine. I will give Rcmdr a try there later
today
> but could use a work-around for at home, where I do all my class prep.
> 
> (I am too much a fan of Eudora to give up yet on 10.6.8; I find Apple Mail
and
> other mail clients lacking.)
> 
> Thanks,
> 
> Paul C
> --
> 
> --------------------------------------------------------
> Paul J. Campbell
> Mathematics and Computer Science
> Beloit College
> 700 College St.
> Beloit, WI  53511-5595
> USA
> 
> ofc:    please send email instead
> fax:  (608) 363-2052
> res:   (608) 362-2805
> 
> really old archived Web page at
> https://web.archive.org/web/20090221120714/http://cs.beloit.edu/campbel
> l/



---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com



More information about the R-SIG-Mac mailing list