| Line 26... |
Line 26... |
| 26 |
The \R home directory is often referred to as \var{R_HOME},
|
26 |
The \R home directory is often referred to as \var{R_HOME},
|
| 27 |
and is the value of an environment variable of that name in an \R
|
27 |
and is the value of an environment variable of that name in an \R
|
| 28 |
session.
|
28 |
session.
|
| 29 |
#ifdef unix
|
29 |
#ifdef unix
|
| 30 |
It can be found outside an \R session by \code{R \link{RHOME}}.
|
30 |
It can be found outside an \R session by \code{R \link{RHOME}}.
|
| 31 |
#endif
|
31 |
#endif
|
| 32 |
}
|
32 |
}
|
| 33 |
\value{
|
33 |
\value{
|
| 34 |
A character string giving the \R home directory or path to a
|
34 |
A character string giving the \R home directory or path to a
|
| 35 |
particular component. Normally the components are all subdirectories
|
35 |
particular component. Normally the components are all subdirectories
|
| 36 |
of the \R home directory, but this may not be the case in a Unix-like
|
36 |
of the \R home directory, but this may not be the case in a Unix-like
|
| Line 40... |
Line 40... |
| 40 |
to a sub-architecture-specific location.
|
40 |
to a sub-architecture-specific location.
|
| 41 |
|
41 |
|
| 42 |
The function \code{R.home()} bases the constructed paths on the
|
42 |
The function \code{R.home()} bases the constructed paths on the
|
| 43 |
current value of the environment variable \env{R_HOME} which is
|
43 |
current value of the environment variable \env{R_HOME} which is
|
| 44 |
normally set on startup.
|
44 |
normally set on startup.
|
| 45 |
|
45 |
|
| 46 |
On Windows the values of \code{R.home()} and \env{R_HOME} are
|
46 |
On Windows the values of \code{R.home()} and \env{R_HOME} are
|
| 47 |
guaranteed not to contain spaces, switching to the 8.3 short form of
|
47 |
guaranteed not to contain spaces, switching to the 8.3 short form of
|
| 48 |
path elements if required. From \R 2.13.0 the value of \env{R_HOME}
|
48 |
path elements if required. From \R 2.13.0 the value of \env{R_HOME}
|
| 49 |
is set on startup to use forward slashes (since many package
|
49 |
is set on startup to use forward slashes (since many package
|
| 50 |
maintainers pass it unquoted to shells, for example in Makefiles).
|
50 |
maintainers pass it unquoted to shells, for example in Makefiles).
|