title: Error in library(ggplot2) : there is no package called ‘ggplot2’ Execution halted
body: <p>I updated my system from ubuntu 18.04 to 18.10. everything worked fine on my previous version, but updating removed all my R libraries.</p>
  
  <p>I want to reinstall them, but when I try and install anything, i.e.</p>
  
  <pre><code>install.packages("data.table")
  Installing package into ‘/home/sam/R/x86_64-pc-linux-gnu-library/3.5’
  (as ‘lib’ is unspecified)
  trying URL 'http://cran.revolutionanalytics.com/src/contrib/data.table_1.11.8.tar.gz'
  Content type 'application/octet-stream' length 3262853 bytes (3.1 MB)
  ==================================================
  downloaded 3.1 MB
  
  Error in library(ggplot2) : there is no package called ‘ggplot2’
  Execution halted
  
  The downloaded source packages are in
      ‘/tmp/RtmpYnxoaQ/downloaded_packages’
  Warning message:
  In install.packages("data.table") :
    installation of package ‘data.table’ had non-zero exit status
  </code></pre>
  
  <p>I get some error about ggplot2 not being present, even though i'm not trying to install it. Currently I haven't managed to isntall any libraries.</p>
  
  <p>I am using <code>R version 3.5.1 (2018-07-02) -- "Feather Spray"</code>. which is the most recent version.</p>
  
  <p>Any idea why this is happening?</p>