Get or Set Working Directory

Usage

getwd()
setwd(dir)

Arguments

dir A character string.

Description

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

Examples

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


[Package Contents]