

   getenv {base}                                R Documentation

   GGeett EEnnvviirroonnmmeenntt VVaarriiaabblleess

   DDeessccrriippttiioonn::

        `getenv' obtains the values of the environment vari-
        ables named by `x'.

   UUssaaggee::

        getenv(x)

   AArrgguummeennttss::

          x: a character vector, or missing

   VVaalluuee::

        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 corre-
        sponding component of `x' (or `""' if no environment
        variable with that name was found).

        On some platforms `getenv()' will return a named vector
        giving the values of all the environment variables.

   SSeeee AAllssoo::

        `getwd' for the working directory.

   EExxaammpplleess::

        getenv(c("R_HOME", "R_PAPERSIZE", "R_PRINTCMD", "HOST"))

