[R] R tcl/tk

Gabor Grothendieck ggrothendieck at gmail.com
Mon Oct 23 17:35:05 CEST 2006


On 10/23/06, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
> On 10/23/2006 10:11 AM, Alberto Monteiro wrote:
> > This must be dumbest question ever asked, but...
> >
> > When I ask help.search("tcltk"), I get a reference to tcltk-package.
> >
> > When I ask help("tcltk-package"), I get "rtfm(s) in 'R_HOME/Tcl/doc'".
> >
> > But then when I ask help.search("R_HOME"), I get nothing.
> >
> > Is something missing here in those help pages?
>
> "R_HOME" is a short form for "the directory where you installed R".
> This is referring you to a directory on your system that holds
> documentation that's outside of R's help system.
>

Note that R_HOME corresponds to the R.home() path
so you can do this on Windows (and the analogous operations
on other platforms):

> setwd(file.path(R.home(), "Tcl", "doc"))
> dir()
[1] "tcl84.cnt" "tcl84.GID" "TCL84.HLP" "tk84.cnt"  "TK84.HLP"
> system("cmd /c start TCL84.HLP")
> system("cmd /c start TK84.HLP")



More information about the R-help mailing list