\Header{getwd}{Get or Set Working Directory}
\alias{setwd}{getwd}
\keyword{utilities}{getwd}
\begin{Description}\relax
\code{getwd} returns an absolute filename representing the current
working directory of the \R{} process; \code{setwd(dir)} is used to set
the working directory to \code{dir}.\end{Description}
\begin{Usage}
\begin{verbatim}
getwd()
setwd(dir)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{dir}] A character string.
\end{ldescription}
\end{Arguments}
\begin{Examples}
\begin{ExampleCode}
(WD <- getwd())
if (!is.null(WD)) setwd(WD)
\end{ExampleCode}
\end{Examples}

