title: Error "no library trees found in 'lib.loc'" in R Studio
body: <p>I'm trying to install ggplot2 in r and keep coming up with this error.<br/>  I did the following commands,</p>
  
  <pre><code>install.packages("ggplot2", lib="/data/Rpackages/", dep=TRUE)  
  library(ggplot2, lib.loc="/data/Rpackages/")
  </code></pre>
  
  <p>And it gives me the error: </p>
  
  <blockquote>
  <pre><code>Error in library(ggplot2, lib.loc = "/data/Rpackages/") : 
     no library trees found in 'lib.loc'
  </code></pre>
  </blockquote>
  
  <p>When I tried intalling it with just   </p>
  
  <pre><code>install.packages("ggplot2",dep=TRUE)  
  library(ggplot2)
  </code></pre>
  
  <p>And it gave me the error </p>
  
  <blockquote>
  <pre><code>Error in library(ggplot2) : there is no package called ‘ggplot2’
  </code></pre>
  </blockquote>
  
  <p>I'm doing all of this in R studio on Debian.  Thanks</p>