Full_Name: Kevin Wright Version: 1.5.1 OS: Windows 95 Submission from: (NULL) (170.54.59.160) In the R windows FAQ, item 3.6 (Package TclTk does not work) currently has this line: Sys.putenv("TCL_LIBRARY"="c:/Program Files/Tcl/lib/tcl8.3") I find that if I execute the following two lines after starting R, I can then do library(tcltk) and demo(tkdensity) as usual. I do not need to modify my autoexec.bat this way! Anyway, using the following two lines in the FAQ might be useful to some people. Sys.putenv("TCL_LIBRARY"="c:/Tcl/lib/tcl8.3") Sys.putenv("PATH"=paste(Sys.getenv("PATH"), ";c:\\tcl\\bin;", Sys.getenv("R_HOME"), "\\library\\tcltk\\libs",sep="")) Humbly (and aplogies for any incorrect terminology) Kevin Wright -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel 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-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 2 Jul 2002 Kevin.Wright@pioneer.com wrote:> Full_Name: Kevin Wright > Version: 1.5.1 > OS: Windows 95 > Submission from: (NULL) (170.54.59.160) > > > In the R windows FAQ, item 3.6 (Package TclTk does not work) currently has this > line: > > Sys.putenv("TCL_LIBRARY"="c:/Program Files/Tcl/lib/tcl8.3") > > I find that if I execute the following two lines after starting R, I can then do > library(tcltk) and demo(tkdensity) as usual. I do not need to modify my > autoexec.bat this way! > > Anyway, using the following two lines in the FAQ might be useful to some > people. > > Sys.putenv("TCL_LIBRARY"="c:/Tcl/lib/tcl8.3") > Sys.putenv("PATH"=paste(Sys.getenv("PATH"), > ";c:\\tcl\\bin;", > Sys.getenv("R_HOME"), > "\\library\\tcltk\\libs",sep=""))Why do you need that? In particular, why do you need .../library/tcltk/libs in the PATH? Both the README and the FAQ already tell you to put the Tcl/Tk DLLs in the your path, so why does the information need to be repeated? Unless something went wrong in your Tcl/Tk installation, they will be in your path, so why put them in a second time? Where is the bug? -- Brian D. Ripley, ripley@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-devel 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-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 2 Jul 2002 23:04:35 +0100 (BST), you wrote:>> Sys.putenv("TCL_LIBRARY"="c:/Tcl/lib/tcl8.3") >> Sys.putenv("PATH"=paste(Sys.getenv("PATH"), >> ";c:\\tcl\\bin;", >> Sys.getenv("R_HOME"), >> "\\library\\tcltk\\libs",sep="")) > >Why do you need that? In particular, why do you need >.../library/tcltk/libs in the PATH? > >Both the README and the FAQ already tell you to put the Tcl/Tk DLLs in >the your path, so why does the information need to be repeated?I think this should be seen as an alternative way to put them in your path. Windows documentation is very unclear about how to get something put into your path. For example, on my system, tcl is not in my path; I "installed" Tcl/Tk by just copying the whole directory from another system. The Sys.putenv commands make it work. Duncan Murdoch -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel 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-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 2 Jul 2002, Duncan Murdoch wrote:> On Tue, 2 Jul 2002 23:04:35 +0100 (BST), you wrote: > >> Sys.putenv("TCL_LIBRARY"="c:/Tcl/lib/tcl8.3") > >> Sys.putenv("PATH"=paste(Sys.getenv("PATH"), > >> ";c:\\tcl\\bin;", > >> Sys.getenv("R_HOME"), > >> "\\library\\tcltk\\libs",sep="")) > > > >Why do you need that? In particular, why do you need > >.../library/tcltk/libs in the PATH? > > > >Both the README and the FAQ already tell you to put the Tcl/Tk DLLs in > >the your path, so why does the information need to be repeated? > > I think this should be seen as an alternative way to put them in your > path. Windows documentation is very unclear about how to get > something put into your path..../library/tcltk/libs should not be in the PATH: it's misinformation.> For example, on my system, tcl is not in my path; I "installed" Tcl/Tk > by just copying the whole directory from another system. The > Sys.putenv commands make it work.Well, a correct command would be better. -- Brian D. Ripley, ripley@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-devel 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-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 3 Jul 2002 08:14:11 +0200 (MET DST), ripley@stats.ox.ac.uk wrote in message <200207030614.IAA04081@pubhealth.ku.dk>:>... a correct command would be better.No question about that. Duncan Murdoch -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel 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-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I installed the Tcl/Tk software from www.activestate.com . The installer did not add the Tcl/Tk DLLs to my PATH. (Probably it should, but I don't think the installer provided me with the option of modifying the PATH.) I am creating an R package that will be distributed to people who may not have permission/skill to modify the PATH settings in Windows, so I was excited to figure out that it was possible to set the PATH after starting R. (I will do this in the R package) It was a VERY useful trick for me, which is why I submitted the suggestion. I may be the only person to find the suggestion useful, in which case it wouldn't make sense to modify the FAQ. Kevin> > > > > >Why do you need that? In particular, why do you need > > >.../library/tcltk/libs in the PATH? > > > > > >Both the README and the FAQ already tell you to put the > Tcl/Tk DLLs in > > >the your path, so why does the information need to be repeated? > > > > I think this should be seen as an alternative way to put > them in your > > path. Windows documentation is very unclear about how to get > > something put into your path.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel 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-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._