DISPLAY
:X11
, Tk (in
package tcltk), the data editor and various packages.EDITOR
:options("editor")
when namespace
utils is loaded.PAGER
:options("pager")
. The default value is chosen at
configuration, usually as the path to less
.R_PRINTCMD
:options("printcmd")
, which sets the default print
command to be used by postscript
.GSC
:R_GSCMD
is not set.R_USER
:HOME
will be set to the same value if not already set.)TZDIR
:Sys.timezone
.HOME
:LANGUAGE
:LC_ALL
:Sys.getlocale
. Consulted at startup.MAKEINDEX
:makeindex
.
If unset to a value determined when R was built.
Used by the emulation mode of texi2dvi
and
texi2pdf
.R_BATCH
:R CMD BATCH
. Most often set to
""
, so test by something like
!is.na(Sys.getenv("R_BATCH", NA))
.R_BROWSER
:options("browser")
.R_COMPLETION
:FALSE
,
command-line completion is not used. (Not used by the macOS GUI.)R_DEFAULT_PACKAGES
:options
.R_DOC_DIR
:doc
directory. Set by R.R_ENVIRON
:R_GSCMD
:dev2bitmap
, bitmap
and
embedFonts
. Consulted when those functions are
invoked. Since it will be treated as if passed to
system
, spaces and shell metacharacters should be escaped.R_HISTFILE
:R_HISTSIZE
:readline
command-line interface it takes effect
when the history is saved (by savehistory
or at the
end of a session).
For Rgui
it controls the number of lines saved to the
history file: the size of the history used in the session is
controlled by the console customization: see Rconsole
.
R_HOME
:R.home
. Set by R.R_INCLUDE_DIR
:include
directory. Set by R.R_LIBS
:.libPaths
.R_LIBS_SITE
:.libPaths
.R_LIBS_USER
:.libPaths
.R_PAPERSIZE
:options("papersize")
, e.g. used by
pdf
and postscript
.R_PDFVIEWER
:R CMD Rd2pdf
.R_PLATFORM
:cpu-vendor-os
, see R.Version
.R_PROFILE
:R_RD4PDF
:pdflatex
processing of
Rd
files. Used by R CMD Rd2pdf
.R_SHARE_DIR
:share
directory. Set by R.R_TEXI2DVICMD
: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
and texi2pdf
in package tools.
R_UNZIPCMD
:unzip
. Sets the
initial value for options("unzip")
on a Unix-alike
when namespace utils is loaded.R_ZIPCMD
:zip
. Used by
zip
and by R CMD INSTALL --build
on Windows.TMPDIR
, TMP
, TEMP
:tempdir
. TMPDIR
is also used by some of the
utilities see the help for build
.TZ
:Sys.timezone
for the system-specific
formats. Consulted as needed.no_proxy
, http_proxy
, ftp_proxy
:download.file
:
see its help for further details.Sys.getenv
and Sys.setenv
to read and set
environmental variables in an R session. gctorture
for environment variables controlling garbage
collection.