title: Having trouble setting working directory
body: <p>I created a folder in order for it to be the main work directory meaning all the files I create go there, and files I read will be from there.
  For some reason after I created the folder and I'm trying to set it as the working directory I get this message:</p>
  
  <pre><code>Error in setwd("~/") : cannot change working directory  
  </code></pre>
  
  <p>When I try to create files they are saved somewhere different and I get an error when trying to load them. I used the <code>scan</code> function and got:</p>
  
  <pre><code>Error in file(file, "r") : cannot open the connection
  </code></pre>
  
  <p>In addition: Warning message:</p>
  
  <pre><code>In file(file, "r") : cannot open file 'ff': No such file or directory
  </code></pre>