This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/getenv.html
getenv {base}R Documentation

Get Environment Variables

Description

getenv obtains the values of the environment variables named by x.

Usage

getenv(x)

Arguments

x

a character vector

Value

A vector of the same length as x, with the variable names as its names attribute. Each element holds the value of the environment variable named by the corresponding component of x (or "" if no environment variable with that name was found).

Examples

getenv(c("RHOME", "R_PAPERSIZE", "R_PRINTCMD"))

[Package base version 0.60 ]