[R] demo(tkttest) exits with error messages
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sat Feb 10 16:01:16 CET 2001
On 10 Feb 2001, Peter Dalgaard BSA wrote:
> Prof Brian D Ripley <ripley at stats.ox.ac.uk> writes:
> > 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
> > for!
> BTW, last I played with this, I found that the following worked nicely
> from inside R (can be useful if you have no access to the system
> startup files).
> Sys.putenv("TCL_LIBRARY"="c:/Program Files/Tcl/lib/tcl8.3")
> What *is* the recommended way of setting environment variables on
> Windows anyway?
Well, that's in the rw-FAQ too! You are advised to make a shortcut to
Rgui.exe, and add the setting to the end of the command line, or
use .Renviron. Neither of those need any access to any system files.
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