\HeaderA{Rhome}{Return the R Home Directory}{Rhome}
\aliasA{R.home}{Rhome}{R.home}
\aliasA{R\_HOME}{Rhome}{R.Rul.HOME}
\aliasA{R\_HOME}{Rhome}{R.Rul.HOME}
\keyword{utilities}{Rhome}
\begin{Description}\relax
Return the \R{} home directory.
\end{Description}
\begin{Usage}
\begin{verbatim}
R.home(component="home")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{component}] As well as \code{"home"} which gives the \R{} home
directory, other known values are \code{"bin"}, \code{"doc"},
\code{"etc"} and \code{"share"} giving the paths to the
corresponding parts of an \R{} installation.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The \R{} home directory is the top-level directory of the \R{}
installation 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 \R{}
session.
It can be found outside an \R{} session by \code{R \LinkA{RHOME}{RHOME}}.
\end{Details}
\begin{Value}
A character string giving the \R{} home directory or path to a
particular component.  Normally the components are all subdirectories
of the \R{} home directory, but this may not be the case in a Unix-like
installation.
\end{Value}

