EnvVar {base} | R Documentation |
Details of some of the environment variables which affect an R session.
It is impossible to list all the environment variables which can affect an R session: some affect the OS system functions which R uses, and others will affect add-on packages. But here are notes on some of the more important ones. Those that set the defaults for options are consulted only at startup (as are some of the others).
Sys.getlocale
. Consulted at startup.options("browser")
.FALSE
,
command-line completion is not used. (Not used by Mac OS GUI.)options
.dvips
. Defaults to
the value of DVIPS, and if that is unset to a value
determined when R was built.
Used by R CMD Rd2dvi
, and at startup to set the default for
options("latexcmd")
, used by
help(help_type="ps")
.
dev2bitmap
, bitmap
and
embedFonts
. Consulted when those functions are invoked.readline
command-line interface it takes effect
when the history is saved (by savehistory
or at the
end of a session).
R.home
. Set by R.latex
. Defaults to
the value of LATEX, and if that is unset to a value
determined when R was built.
Used by R CMD Rd2dvi
.
.libPaths
..libPaths
..libPaths
.makeindex
.
Defaults at startup to the value of MAKEINDEX, and if that
is unset to a value determined when R was built.
Used by R CMD Rd2dvi
.options("papersize")
, e.g. used by
pdf
and postscript
.pdflatex
.
Defaults at startup to the value of PDFLATEX
, and if that
is unset to a value determined when R was built.
Used by R CMD Rd2dvi
.R CMD Rd2dvi
.cpu-vendor-os
, see R.Version
.latex
processing of
Rd
files. Used by R CMD Rd2dvi
.pdflatex
processing of
Rd
files.
Used by R CMD Rd2dvi
.texi2dvi
.
Defaults to the value of TEXI2DVI, and if that is unset to a
value determined when R was built.
Consulted at startup to set the default for
options("texi2dvi")
, used by
texi2dvi
in package tools.
unzip
. Sets the
initial value for options("unzip")
on a Unix-alike
when package utils is loaded.zip
. Only used in R
itself by R CMD INSTALL --build
on Windows.tempdir
. TMPDIR is also used by some of the
utilities see the help for build
.Sys.timezone
for the system-specific
formats. Consulted as needed.download.file
:
see its help for further details.Some variables set on Unix-alikes, and not (in general) on Windows.
X11
, Tk (in
package tcltk), the data editor and various packages.options("editor")
when package
utils is loaded.options("pager")
. The default value is chosen at
configuration, usually as the path to less
.options("printcmd")
, which sets the default print
command to be used by postscript
.
Sys.getenv
and Sys.setenv
to read and set
environmental variables in an R session.