title: Error installation R-packages on Linux Mint 18
body: <p>It is somehow impossible for me to install new R-packages on my Linux Mint 18 system. I need to install <code>ggplot2</code> and <code>car</code>.
  After the input </p>
  
  <pre><code>install.packages("ggplot2")
  </code></pre>
  
  <p>R is working for a very long time and after this, I get the output </p>
  
  <blockquote>
    <p>Warning in install.packages :
      installation of package ‘scales’ had non-zero exit status
    ERROR: dependencies ‘digest’, ‘plyr’, ‘reshape2’, ‘scales’, ‘tibble’, ‘lazyeval’ are not available for package ‘ggplot2’
    * removing ‘/home/phine/R/x86_64-pc-linux-gnu-library/3.2/ggplot2’
    Warning in install.packages :
      installation of package ‘ggplot2’ had non-zero exit status</p>
    
    <p>The downloaded source packages are in
        ‘/tmp/RtmpsK4IjC/downloaded_packages’
    Warnmeldung:
    In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
      there is no package called ‘ggplot2’</p>
  </blockquote>
  
  <p>The same happens, if I am trying to install the <code>car</code> package.</p>
  
  <p>So far I was trying to follow the help from R-bloggers (<a href="https://www.r-bloggers.com/installing-r-packages/" rel="nofollow noreferrer">https://www.r-bloggers.com/installing-r-packages/</a>), but I get the same output.</p>
  
  <p>Further I tried: (<a href="https://stackoverflow.com/questions/22726764/error-installing-ggplot2">Error installing ggplot2</a>) </p>
  
  <pre><code>if(!require(ggplot2)) install.packages('dplyr',dependencies = TRUE)
  </code></pre>
  
  <p>The output is the same as above </p>
  
  <blockquote>
    <p>there is no package called ‘ggplot2’</p>
  </blockquote>
  
  <p>After this I read the posts on this page (<a href="https://stackoverflow.com/questions/26793359/cant-install-r-packages-on-linux-mint-17">Can&#39;t install R packages on Linux Mint 17</a>). 
  After running in the terminal, </p>
  
  <pre><code>sudo apt-get install r-base-dev 
  </code></pre>
  
  <p>I get the output (this is a free translation. Unfortunately my terminal is speaking german, even if I change the system language to english)</p>
  
  <blockquote>
    <p>E: package »r-base-dev« has no installation candidate</p>
    
    <p>Input:sudo apt-get install r-cran-rcpp</p>
    
    <p>Output:E: package r-cran-rcpp not found.</p>
  </blockquote>
  
  <p>I hope my question is clear and precise enough. I am beginner in using R and Linux. </p>