[R] Probblems with loading the tcltk library

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Feb 7 17:18:09 CET 2002


On Thu, 7 Feb 2002, Christian Schulz wrote:

> Prof Brian Ripley wrote:
>
> >On Wed, 6 Feb 2002, Beat Huggler wrote:
> >
> >>Hi guys
> >>
> >>Recently a wanted to look at the opotunities which are suported by the
> >>labrary of tcltk. Unfortunatly I couldn't load the library and it
> >>occured the following error message:
> >>
> >>Error in firstlib(which.lib.loc, package) :
> >>        TCL_LIBRARY is not set
> >>Error in library(pkg, character.only = TRUE) :
> >>        .First.lib failed
> >>
> >>I've tried to load it in sveral ways. I reinstalt the this library bud
> >>nothing happend. What is the problem and how can I solve it??
> >>
> >
> >It appears that this was under Windows and you have not set TCL_LIBRARY.
> >That *is* in the README, and also in the rw-FAQ.
> >
> I have got the same problems, but use this :
> Sys.putenv("TCL_LIBRARY"="c:/Tcl/lib/tcl83")
> where my TCL/TK  is installed and  set in my win2000  the same folder to
> the path row !?

That's not the value suggested in the README and rw-FAQ: it ends tcl8.3.

>  Error in dyn.load(x, as.logical(local), as.logical(now)) :
>         unable to load shared library
> "D:/Statsoft/rw1041/library/tcltk/libs/tcltk.dll":
>   LoadLibrary failure:  Das angegebene Modul wurde nicht gefunden.
> Error in library(tcltk) : .First.lib failed

My guess is that c:/Tcl/bin is not in the path being seen by Rgui.

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