[R] help with library(tcltk)

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Mon Dec 17 23:43:58 CET 2001

antonio <rod.chav at hsoft.es> writes:

> Hi All,
> I have tried several times to run this library and I get the following 
> message:
> > library(tcltk) 
> Error in firstlib(which.lib.loc, package) :  
>        invalid command name "tcl_findLibrary" 
> Error in library(tcltk) : 
> .First.lib failed 
> >
> I have checked either the tcl and tk libraries and they are correctly 
> installed (/usr/lib/). I have other program (Grass) that make use of them and 
> it works correctly.
> System:
> Intel Pentium MMX
> Linux Mandrake 8.0
> Tcl/Tk 8.3

Which version of R, and did you compile it yourself? If so, did tcl/tk
support get enabled?

I get a sense of deja vu from this, so you might want to check the

Nothing in R is messing with tcl_findLibrary but that command is
generally known to Tcl interpreters, including the one that R starts:

> library(tcltk)
> .Tcl("tcl_findLibrary")
Error in .Tcl("tcl_findLibrary") : [tcl] no value given for parameter
"basename" to "tcl_findLibrary".

It appears that it is generally defined in /usr/lib/tcl8.3/auto.tcl.
Your error comes from the Tcl interpreter, so it seems that you're
loading the library OK, but then initialization fails somehow. Might
it be that you have multiple versions installed or that the
LD_LIBRARY_PATH got somehow messed up?

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list