next up previous
Next: Unfreezing R Up: Interacting with the Operating Previous: Batch/indirect operation

Manipulating the working directory in R

You can set your working directory in R so that any file names will automatically refer to files in that directory on your system.
setwd('/path_to_directory') # the argument to setwd can also be a text variable
To find out what the current working directory is:

Keywords: R, working directory, input, output

Last modified 11/19/05.

Chris Paciorek 2012-01-21