[R] R tcl/tk

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Oct 23 17:48:16 CEST 2006


On Mon, 23 Oct 2006, 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 an environment variable: use Sys.getenv("R_HOME") to find its 
value (the same as R.home()), which will be the top-level directory of 
that particular R installation.

BTW, you have not been as careful as you require of others: your comments 
are only true if preceded by the missing 'library(tcltk)' and only if you 
are running on Windows.

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list