title: How to get R to recognize your working directory as its working directory?
body: <p>I use R under Windows on several machines.</p>
  
  <p>I know you can set the working directory from within an R script, like this</p>
  
  <pre><code>setwd("C:/Documents and Settings/username/My Documents/x/y/z")
  </code></pre>
  
  <p>... but then this breaks the portability of the script. It's also annoying to have to reverse all the slashes (since Windows gives you backslashes)</p>
  
  <p>Is there a way to start R in a particular working directory so that you don't need to do this at the script level?</p>