[R] tcltk library

Dilip N. Thadani thadani at tkk.att.ne.jp
Tue Dec 26 02:16:08 CET 2000


Thank you.  You are right removing the quotes fixes the problem.  Apologies
for not being clear in my previous email.

Thanks for responding so promptly.

regards

Dilip

-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Sent: Tuesday, December 26, 2000 2:56 AM
To: Dilip N. Thadani
Cc: r-help at r-project.org
Subject: Re: [R] tcltk library


On Mon, 25 Dec 2000, Dilip N. Thadani wrote:

> R version 1.2
> OS Window NT 4.0 Service Pack 6.0

Would that be R version 1.2.0 and Windows?

> I downloaded tcl.tck 8.3.2 from http://www.scriptics.com  I also set the
> TCL_LIBRARY variable in my environment.

To what?  You would have saved some detective work by telling us. More
generally, please tell us *exactly* what you did, as I think you are being
careless in the details (which is why I am pointing up the minor errors in
this report) and I believe your problem is the result of that lack of
care.

> However when I try to load the tcltk library in R this is what happens:-
                                       ^^^^^^^
package, I presume.

> > library(tcltk)
> Error in firstlib(which.lib.loc, package) :
>         Can't find a usable init.tcl in the following directories:
>     {"F:/Program Files/Tcl/lib/tcl8.3"} {}
>
>
> This probably means that Tcl wasn't installed properly.
> Error in library(tcltk) : .First.lib failed
>
> Why is this happening?  I also tried setting TCL_LIBRARY to the top level
> directory, i.e F:/Program Files/Tcl   but R still cannot seem to load this
> library.  The file init.tcl is present in
> F:/Program Files/Tcl/lib/tcl8.3.
> Can someone shed some light on this?

Probably because you failed to follow the instructions, which say (file
CHANGES)

  Also, you need to set the environment variable TCL_LIBRARY, to something
  like c:/Program Files/Tcl/lib/tcl8.3.

NB, *not* "c:/Program Files/Tcl/lib/tcl8.3", and when I do that I get an
error message very like yours.  So, what *exactly* did you do?

If setting without quotes does not work for you, try the short-form name,
probably F:/PROGRA~1/Tcl/lib/tcl8.3.  Whatever, this is a Tcl/Tk not
package tcltk problem.

--
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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