ID EN
Environment & Scope

EnvVar

R Base 3.6.2

Details of some of the environment variables which affect an R session.

Details

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). HOME:The user's ‘home’ directory. LANGUAGE:Optional. The language(s) to be used for message translations. This is consulted when needed. LC_ALL:(etc) Optional. Use to set various aspects of the locale -- see Sys.getlocale. Consulted at startup. MAKEINDEX:The path to makeindex. If unset to a value determined when R was built. Used by the emulation mode of texi2dvi and texi2pdf. R_BATCH:Optional -- set in a batch session, that is one started by R CMD BATCH. Most often

See Also

Sys.getenv and Sys.setenv to read and set environmental variables in an R session. gctorture for environment variables controlling garbage collection.