R Tips



Steven Holland

Setting the working directory in Windows

20 August 2009

To set the working directory in Windows, call setwd() as below.

setwd("C:\\Documents and Settings\\myUserName\\Desktop")

Be sure to use double back-slashes, which are required in Windows, as opposed to single forward slashes (/) in OS X and Linux.