| Line 46... |
Line 46... |
| 46 |
environment variable \env{R_DEFAULT_PACKAGES} which determines the
|
46 |
environment variable \env{R_DEFAULT_PACKAGES} which determines the
|
| 47 |
packages loaded on startup. The default for \command{Rscript}
|
47 |
packages loaded on startup. The default for \command{Rscript}
|
| 48 |
omits \pkg{methods} as it takes about 60\% of the startup time.
|
48 |
omits \pkg{methods} as it takes about 60\% of the startup time.
|
| 49 |
}
|
49 |
}
|
| 50 |
}
|
50 |
}
|
| 51 |
|
51 |
|
| 52 |
Spaces are allowed in \code{expression} and \code{file} (but will need
|
52 |
Spaces are allowed in \code{expression} and \code{file} (but will need
|
| 53 |
to be protected from the shell in use, if any, for example by
|
53 |
to be protected from the shell in use, if any, for example by
|
| 54 |
enclosing the argument in quotes).
|
54 |
enclosing the argument in quotes).
|
| 55 |
|
55 |
|
| 56 |
#ifdef unix
|
56 |
#ifdef unix
|
| 57 |
Normally the version of \R is determined at installation, but this can
|
57 |
Normally the version of \R is determined at installation, but this can
|
| 58 |
be overridden by setting the environment variable \env{RHOME}.
|
58 |
be overridden by setting the environment variable \env{RHOME}.
|
| 59 |
#endif
|
59 |
#endif
|
| 60 |
#ifdef windows
|
60 |
#ifdef windows
|
| 61 |
The \R files are found from the location of the \file{Rscript.exe}
|
61 |
The \R files are found from the location of the \file{Rscript.exe}
|
| 62 |
executable. If this is copied elsewhere, the environment variable
|
62 |
executable. If this is copied elsewhere, the environment variable
|
| 63 |
\env{RHOME} should be set to the top directory of the \R installation.
|
63 |
\env{RHOME} should be set to the top directory of the \R installation.
|
| 64 |
|
64 |
|
| 65 |
Unlike Unix-alikes, this links directly to \file{R.dll} rather than
|
65 |
Unlike Unix-alikes, this links directly to \file{R.dll} rather than
|
| 66 |
running a separate process.
|
66 |
running a separate process.
|
| 67 |
#endif
|
67 |
#endif
|
| 68 |
|
68 |
|
| 69 |
\code{\link{stdin}()} refers to the input file, and
|
69 |
\code{\link{stdin}()} refers to the input file, and
|