[R] Loading tcltk package fails on WinMe/Cygwin but works with Rgui

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Mar 6 18:04:19 CET 2002

On Wed, 6 Mar 2002, Henrik Bengtsson wrote:

> I am investigating how well R/tcltk is supported on different system and I
> ran into the same problem as Christian Schulz reported on February 7, 2002.
> I am using [R] v1.4.1 on WinMe and ActiveTcl 8.3.2. Loading tcltk within
> Rgui works just fine and both demo(tkdensity) and demo(tkttest) works as
> expected. However, when I start R from my Cygwin terminal dyn.load() fails
> to load the library:
> % R --vanilla

What `R' is this?  The Windows port only has Rgui and Rterm.

My bet is that you don't have the *Windows* Tcl bin directory in your
*Cygwin* path.   See the rw-FAQ Q3.6.

If by `my Cygwin terminal' you mean the Cygwin bash shell (Cygwin provides
no terminal per se), then with the correct path it does work.  (I have Tcl
installed in c:\R\Tcl and had /R/Tcl/Bin in my bash path.  You can find
out by looking at the environment variable PATH from a running R process.)

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