Hello listers, I have installed Tcl/Tk v8.4 on my system (Win XP, R 1.5.1). When I try to load the Tcl/Tk package I get this error:> library(tcltk)Error in firstlib(which.lib.loc, package) : TCL_LIBRARY is not set Error in library(tcltk) : .First.lib failed Can someone help me, please? Thanks, Juan -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>From: "Juan Ramon Gonzalez" <jrgonzalez at ico.scs.es> >To: "R-List" <> >Subject: [R] Problems with tcltk package >Date: Mon, 23 Sep 2002 12:24:04 +0200 >MIME-Version: 1.0 >Content-Transfer-Encoding: 7bit >X-Priority: 3 >X-MSMail-Priority: Normal >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 > >Hello listers, > >I have installed Tcl/Tk v8.4 on my system (Win XP, R 1.5.1). When I try to >load the Tcl/Tk package I get this error: > >> library(tcltk) >Error in firstlib(which.lib.loc, package) : > TCL_LIBRARY is not set >Error in library(tcltk) : .First.lib failed > >Can someone help me, please?Check the R help archives. There were discussions about this problem about a week ago.> >Thanks, > >Juan > >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- >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 >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
You need to find Tcl's library directory on your system. Search for a file named init.tcl; set its directory to your TCL_LIBRARY environment variable. On my Windows system, its C:\Tcl\lib\tcl8.3, for instance. Good luck. Kevin -----Original Message----- From: Juan Ramon Gonzalez [mailto:jrgonzalez at ico.scs.es] Sent: Monday, September 23, 2002 6:24 AM To: R-List Subject: [R] Problems with tcltk package Hello listers, I have installed Tcl/Tk v8.4 on my system (Win XP, R 1.5.1). When I try to load the Tcl/Tk package I get this error:> library(tcltk)Error in firstlib(which.lib.loc, package) : TCL_LIBRARY is not set Error in library(tcltk) : .First.lib failed Can someone help me, please? Thanks, Juan -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. -.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
"Juan Ramon Gonzalez" <jrgonzalez at ico.scs.es> writes:> Hello listers, > > I have installed Tcl/Tk v8.4 on my system (Win XP, R 1.5.1). When I try to > load the Tcl/Tk package I get this error: > > > library(tcltk) > Error in firstlib(which.lib.loc, package) : > TCL_LIBRARY is not set > Error in library(tcltk) : .First.lib failed > > Can someone help me, please?I believe that the Windows version has 8.3 hardcoded in a couple of places, so downgrading might help... However, you still need to take the hint and set TCL_LIBRARY, as outlined in the Windows FAQ, and likely adjust your PATH too. (The Tcl 8.4 release announcement was only last week, so as far as I know there has been zero compatibility testing...) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._