| Line 45... |
Line 45... |
| 45 |
\item{\option{--verbose}}{gives details of what \command{Rscript} is
|
45 |
\item{\option{--verbose}}{gives details of what \command{Rscript} is
|
| 46 |
doing. Also passed on to \R.}
|
46 |
doing. Also passed on to \R.}
|
| 47 |
\item{\option{--default-packages=list}}{where \code{list} is a
|
47 |
\item{\option{--default-packages=list}}{where \code{list} is a
|
| 48 |
comma-separated list of package names or \code{NULL}. Sets the
|
48 |
comma-separated list of package names or \code{NULL}. Sets the
|
| 49 |
environment variable \env{R_DEFAULT_PACKAGES} which determines the
|
49 |
environment variable \env{R_DEFAULT_PACKAGES} which determines the
|
| 50 |
packages loaded on startup. The default for \command{Rscript}
|
50 |
packages loaded on startup.
|
| 51 |
omits \pkg{methods} as it takes about 60\% of the startup time.
|
- |
|
| 52 |
}
|
51 |
}
|
| 53 |
}
|
52 |
}
|
| 54 |
|
53 |
|
| 55 |
Spaces are allowed in \code{expression} and \code{file} (but will need
|
54 |
Spaces are allowed in \code{expression} and \code{file} (but will need
|
| 56 |
to be protected from the shell in use, if any, for example by
|
55 |
to be protected from the shell in use, if any, for example by
|
| 57 |
enclosing the argument in quotes).
|
56 |
enclosing the argument in quotes).
|
| 58 |
|
57 |
|
| - |
|
58 |
If \option{--default-packages} is not used, then \command{Rscript}
|
| - |
|
59 |
checks the environment variable \env{R_SCRIPT_DEFAULT_PACKAGES}. If
|
| - |
|
60 |
this is set, then it takes precedence over \env{R_DEFAULT_PACKAGES}.
|
| - |
|
61 |
|
| 59 |
#ifdef unix
|
62 |
#ifdef unix
|
| 60 |
Normally the version of \R is determined at installation, but this can
|
63 |
Normally the version of \R is determined at installation, but this can
|
| 61 |
be overridden by setting the environment variable \env{RHOME}.
|
64 |
be overridden by setting the environment variable \env{RHOME}.
|
| 62 |
#endif
|
65 |
#endif
|
| 63 |
#ifdef windows
|
66 |
#ifdef windows
|