Get or set current directory.

DESCRIPTION:

Get or set current directory.

USAGE:

getwd()
setwd(dir)

REQUIRED ARGUMENTS:

dir
a character string naming a directory in the file system.

VALUE:

getwd returns the directory that S-PLUS is running in. Relative (non-absolute) file names given to input and output functions like importData and cat are looked for relative to this directory. setwd returns nothing useful, but has the side effect of changing the current working directory to dir.

WARNING:

Changing the working directory should not be done if you are using any relative (non-absolute) file names.

SEE ALSO:

.

EXAMPLES:

getwd()
# [1] "C:\\DOCUME~1\\lenk\\MYDOCU~1\\S-PLUS~1\\Project1"