Rev 47675 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/Rhome.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2008 R Core Development Team% Distributed under GPL 2 or later\name{Rhome}\alias{R.home}\alias{R_HOME}%\alias{R\_HOME} % to allow \file{\var{\link{R\_HOME}}/Tcl/doc}\title{Return the R Home Directory}\description{Return the \R home directory.}\usage{R.home(component="home")}\arguments{\item{component}{As well as \code{"home"} which gives the \R homedirectory, other known values are \code{"bin"}, \code{"doc"},\code{"etc"} and \code{"share"} giving the paths to thecorresponding parts of an \R installation.}}\details{The \R home directory is the top-level directory of the \Rinstallation being run.The \R home directory is often referred to as \var{R_HOME},and is the value of an environment variable of that name in an \Rsession.#ifdef unixIt can be found outside an \R session by \code{R \link{RHOME}}.#endif}\value{A character string giving the \R home directory or path to aparticular component. Normally the components are all subdirectoriesof the \R home directory, but this may not be the case in a Unix-likeinstallation.}\keyword{utilities}