[R] demo(tkttest) exits with error messages

Prof Brian D Ripley ripley at stats.ox.ac.uk
Sat Feb 10 09:42:41 CET 2001

On Fri, 9 Feb 2001, Griffith Feeney wrote:

> I've just installed tcl version 8.3 for windows for use with rw1021,
> running on win95 (4.00.950). demo(tkttest) gives the following error messages.
> > require(tcltk) || stop("tcltk support is absent")
> Loading required package: tcltk
> Error in firstlib(which.lib.loc, package) :
>         TCL_LIBRARY is not set
> Error in eval.with.vis(expr, envir, enclos) :
>         tcltk support is absent
> Can't find any explanation in the documentation (looked at refman chapter
> 11) or mailing list archives.  TCL_LIBRARY is a DOS environment variable,
> presumably? What should it be set to? Tried setting it to
> "C:\PROGRA~1\TCL\LIB" (where tcl is installed), this doesn't work.

Try the rw-faq question 3.6:

For package tcltk to work (try `demo(tkdensity)' or `demo(tkttest)')
you need to have Tcl installed.  Download `tcl832.exe' (or use
`tcl831.exe' if you already have it) from <dev.scriptics.com> and
install it. (That will put the `bin' directory containing the Tcl and
Tk DLLs in your path).  You then need to set the environment variable
`TCL_LIBRARY', to something like `c:/Program Files/Tcl/lib/tcl8.3'.
(The startup code for the package will warn you if this is unset, and
Q3.2 explains how to set them.  NB: do not quote the path, even if as
here it contains spaces.)

There has been discussion of this on the list several times, and the
information is also in CHANGES.  But I think it is precisely what FAQs are

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