getwd {base} | R Documentation |
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
.
getwd()
setwd(dir)
dir |
A character string. |
(WD <- getwd())
if (!is.null(WD)) setwd(WD)