

   getwd {base}                                 R Documentation

   GGeett oorr SSeett WWoorrkkiinngg DDiirreeccttoorryy

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

        `getwd' returns an absolute filename representing the
        current working directory of the R process;
        `setwd(dir)' is used to set the working directory to
        `dir'.

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

        getwd()
        setwd(dir)

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

        dir: A character string.

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

        (WD <- getwd())
        if (!is.null(WD)) setwd(WD)

