[R] library(tcltk) fails

Dirk Eddelbuettel edd at debian.org
Tue Nov 6 15:03:00 CET 2007


On Tue, Nov 06, 2007 at 01:08:40PM +0100, Sven Garbade wrote:
> Dear list,
> 
> I cannot load the tcltk library:
> 
> > library(tcltk)
> Loading Tcl/Tk interface ... Error in fun(...) : 
>   Can't find a usable tk.tcl in the following directories: 
>     /usr/share/tcltk/tcl8.4/tk8.4 ./lib/tk8.4 /usr/local/lib/tcltk/tk8.4 /usr/local/share/tcltk/tk8.4 /usr/lib/tcltk/tk8.4 /usr/share/tcltk/tk8.4 ./library ./tk8.4.16/library
> 
> 
> 
> This probably means that tk wasn't installed properly.
> 
> Error : .onLoad failed in 'loadNamespace' for 'tcltk'
> Error: package/namespace load failed for 'tcltk'
> 
> Cannot remember that I uninstalled anything related to Tcl/Tk, and I can
> start Tcl/TK application I wrote. Some system information:
> 
> > Sys.info()
>                             sysname                            release 
>                            "Linux"                           "2.6.22" 
>                            version                           nodename 
> "#2 Mon Oct 22 09:58:25 CEST 2007"                             "meta" 
>                            machine                              login 
>                             "i686"                          "unknown" 
>                               user 
>                              "sfg" 
> 
> on Debian testing, Tcl/Tk:
> 
> $ ldconfig -p | grep libtk
> 	libtk8.5.so.0 (libc6) => /usr/lib/libtk8.5.so.0
>         libtk8.4.so.0 (libc6) => /usr/lib/libtk8.4.so.0
>         libtk8.4.so (libc6) => /usr/lib/libtk8.4.so
> 
> $ ldconfig -p | grep libtcl
>         libtcl8.5.so.0 (libc6) => /usr/lib/libtcl8.5.so.0
>         libtcl8.4.so.0 (libc6) => /usr/lib/libtcl8.4.so.0
>         libtcl8.4.so (libc6) => /usr/lib/libtcl8.4.so
> 
> Anything wrong with my Tcl/Tk installation?

You didn't tell us your operating system -- but a few days ago on the
r-sig-debian list we looked at the same issue and found that the tk8.4
package from Debian unstable fixes this.

Hth, Dirk

> 
> Thanks, Sven
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Three out of two people have difficulties with fractions.



More information about the R-help mailing list