| 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).
dvips. Used at startup to
set the default for options("dvipscmd") which used
by help(help_type="ps").
Sys.getlocale. Consulted at startup.makeindex.
If unset to a value determined when R was built.
Used by the emulation mode of texi2dvi.options("browser").FALSE,
command-line completion is not used. (Not used by Mac OS GUI.)options.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..libPaths..libPaths..libPaths.options("papersize"), e.g. used by
pdf and postscript.R CMD Rd2dvi --pdf.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 name space utils is loaded.zip. Used by
zip and 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 name space
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.