title: Setting a working directory: "Error in setwd: cannot change working directory" under "C:/Documents and Settings/..."
body: <p>I was wondering why it won't let me change my working directory.<br>
  I keep seeing this error:</p>
  
  <pre><code>Error in setwd(dataDir) : cannot change working directory
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>dataDir &lt;- "C:/Documents and Settings/My Documents/R/"
  setwd(dataDir)
  </code></pre>