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.
HOME
:LANGUAGE
:LC_ALL
:Sys.getlocale
.R_BATCH
:R_COMPLETION
:FALSE
,
comand-line completion is not used. (Not used by Mac OS GUI.)R_DEFAULT_PACKAGES
:options
.R_ENVIRON
:R_GSCMD
:R_HISTFILE
:R_HISTSIZE
:R_HOME
:R_LIBS
:.libPaths
.R_LIBS_SITE
:.libPaths
.R_LIBS_USER
:.libPaths
.R_PAPERSIZE
:pdf
and postscript
.R_PROFILE
:R_RD4DVI
:latex
processing of
Rd
files.R_RD4PDF
:pdflatex
processing of
Rd
files.TMPDIR
, TMP
, TEMP
:tempdir
.TZ
:as.POSIXlt
for the system-specific formats.no_proxy
, http_proxy
, ftp_proxy
:download.file
.Some variables set on Unix-alikes, and not (in general) on Windows.
DISPLAY
:X11
, Tk (in
package tcltk), the data editor and various packages.EDITOR
:PAGER
:R_BROWSER
:R_DOC_DIR
:R_DVIPSCMD
:dvips
.R_INCLUDE_DIR
:R_LATEXCMD
:latex
.R_MAKEINDEXCMD
:makeindex
.R_PDFVIEWER
:R_PLATFORM
:cpu-vendor-os
, see R.Version
.R_PRINTCMD
:postscript
.R_SHARE_DIR
:R_UNZIPCMD
:unzip
.R_ZIPCMD
:zip
.
Sys.getenv
and Sys.setenv
to read and set
environmental variables in an R session.